diff --git a/src/router/console/accounts.js b/src/router/console/accounts.js index d4e11fffe..d27e5588c 100644 --- a/src/router/console/accounts.js +++ b/src/router/console/accounts.js @@ -108,16 +108,6 @@ export default [ activeMenu: '/accounts/gathered-user' } }, - { - path: 'tasks/:id', - component: () => import('@/views/accounts/GatheredUser/TaskDetail/index'), - name: 'GatherUserTaskDetail', - hidden: true, - meta: { - title: i18n.t('xpack.GatherUser.GatherUserTaskDetail'), - permissions: ['xpack.view_gatherusertask'] - } - }, { path: 'tasks/create', component: () => import('@/views/accounts/GatheredUser/TaskCreateUpdate'), @@ -128,6 +118,16 @@ export default [ permissions: ['xpack.add_gatherusertask'] } }, + { + path: 'tasks/:id', + component: () => import('@/views/accounts/GatheredUser/TaskDetail/index'), + name: 'GatherUserTaskDetail', + hidden: true, + meta: { + title: i18n.t('xpack.GatherUser.GatherUserTaskDetail'), + permissions: ['xpack.view_gatherusertask'] + } + }, { path: 'tasks/:id/update', component: () => import('@/views/accounts/GatheredUser/TaskCreateUpdate'), diff --git a/src/views/accounts/GatheredUser/TaskDetail/index.vue b/src/views/accounts/GatheredUser/TaskDetail/index.vue index 71a5ba970..4892d289a 100644 --- a/src/views/accounts/GatheredUser/TaskDetail/index.vue +++ b/src/views/accounts/GatheredUser/TaskDetail/index.vue @@ -26,7 +26,8 @@ export default { activeMenu: 'Detail', actions: { canUpdate: this.$hasPerm('assets.change_automationexecution'), - canDelete: this.$hasPerm('assets.delete_automationexecution') + canDelete: this.$hasPerm('assets.delete_automationexecution'), + deleteSuccessRoute: 'GatherUserListIndex' }, submenu: [ {