Skip to content

Commit

Permalink
fix: 轻应用再次执行路由跳转错误问题修复 --ignore
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 7303
  • Loading branch information
ywywZhou authored and luofann committed May 8, 2024
1 parent 1db5df8 commit 310b79b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/desktop/src/pages/appmaker/AppTaskHome/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,9 @@
getCreateTaskUrl (task) {
const { id, template_id, template_source } = task
const url = {
name: 'taskCreate',
name: 'appmakerTaskCreate',
query: { template_id: template_id, task_id: id, entrance: 'taskflow' },
params: { project_id: this.project_id, step: 'selectnode' }
params: { project_id: this.project_id, step: 'selectnode', app_id: this.app_id }
}
if (template_source === 'common') {
url.query.common = 1
Expand Down
5 changes: 3 additions & 2 deletions frontend/desktop/src/pages/task/TaskExecute/TaskOperation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@
computed: {
...mapState({
view_mode: state => state.view_mode,
appId: state => state.app_id,
hasAdminPerm: state => state.hasAdminPerm,
infoBasicConfig: state => state.infoBasicConfig,
username: state => state.username,
Expand Down Expand Up @@ -941,9 +942,9 @@
// 任务重新执行
taskReExecute () {
const url = {
name: 'taskCreate',
name: this.view_mode === 'appmaker' ? 'appmakerTaskCreate' : 'taskCreate',
query: { template_id: this.template_id, task_id: this.instance_id, entrance: 'taskflow' },
params: { project_id: this.projectId, step: 'selectnode' }
params: { project_id: this.projectId, step: 'selectnode', app_id: this.appId }
}
if (this.templateSource === 'common') {
url.query.common = 1
Expand Down

0 comments on commit 310b79b

Please sign in to comment.