mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-27 10:59:05 +00:00
fix: 修复收集用户-删除任务后,浏览器后退会进入到详情在此执行删除接口404问题
This commit is contained in:
parent
92c53cbfc1
commit
650b5ded35
@ -108,16 +108,6 @@ export default [
|
|||||||
activeMenu: '/accounts/gathered-user'
|
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',
|
path: 'tasks/create',
|
||||||
component: () => import('@/views/accounts/GatheredUser/TaskCreateUpdate'),
|
component: () => import('@/views/accounts/GatheredUser/TaskCreateUpdate'),
|
||||||
@ -128,6 +118,16 @@ export default [
|
|||||||
permissions: ['xpack.add_gatherusertask']
|
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',
|
path: 'tasks/:id/update',
|
||||||
component: () => import('@/views/accounts/GatheredUser/TaskCreateUpdate'),
|
component: () => import('@/views/accounts/GatheredUser/TaskCreateUpdate'),
|
||||||
|
@ -26,7 +26,8 @@ export default {
|
|||||||
activeMenu: 'Detail',
|
activeMenu: 'Detail',
|
||||||
actions: {
|
actions: {
|
||||||
canUpdate: this.$hasPerm('assets.change_automationexecution'),
|
canUpdate: this.$hasPerm('assets.change_automationexecution'),
|
||||||
canDelete: this.$hasPerm('assets.delete_automationexecution')
|
canDelete: this.$hasPerm('assets.delete_automationexecution'),
|
||||||
|
deleteSuccessRoute: 'GatherUserListIndex'
|
||||||
},
|
},
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user