mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix: 修复远程应用-应用发布机详情页按钮没有权限问题
This commit is contained in:
@@ -238,7 +238,7 @@ export default {
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('route.AppletHostCreate'),
|
||||
permissions: ['settings.change_terminal'],
|
||||
permissions: ['terminal.add_applethost'],
|
||||
activeMenu: '/settings/applets'
|
||||
}
|
||||
},
|
||||
@@ -249,7 +249,7 @@ export default {
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('route.AppletHostDetail'),
|
||||
permissions: ['settings.change_terminal'],
|
||||
permissions: ['terminal.view_applethost'],
|
||||
activeMenu: '/settings/applets'
|
||||
}
|
||||
},
|
||||
@@ -260,7 +260,7 @@ export default {
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('route.AppletHostUpdate'),
|
||||
permissions: ['settings.change_terminal'],
|
||||
permissions: ['terminal.change_applethost'],
|
||||
activeMenu: '/settings/applets'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,11 +54,12 @@ export default {
|
||||
],
|
||||
hasRightSide: true,
|
||||
actions: {
|
||||
canDelete: this.$hasPerm('terminal.delete_applethost'),
|
||||
canUpdate: this.$hasPerm('terminal.change_applethost'),
|
||||
deleteSuccessRoute: 'Applets',
|
||||
updateCallback: () => {
|
||||
const category = this.host.category.value || 'host'
|
||||
const routerName = _.capitalize(category) + 'Update'
|
||||
this.$router.push({
|
||||
name: routerName,
|
||||
name: 'Applets',
|
||||
params: { id: this.$route.params.id },
|
||||
query: { platform: this.host.platform.id }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user