fix: 修复收集用户-删除任务后,浏览器后退会进入到详情在此执行删除接口404问题

This commit is contained in:
“huailei000” 2022-12-02 10:45:22 +08:00 committed by huailei
parent 92c53cbfc1
commit 650b5ded35
2 changed files with 12 additions and 11 deletions

View File

@ -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'),

View File

@ -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: [
{