fix: 修改系统设置-终端设置创建权限控制

This commit is contained in:
Jiangjie.Bai
2022-04-20 14:42:12 +08:00
committed by Jiangjie.Bai
parent bc21d7ac17
commit 1f0fe18533
4 changed files with 4 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ export default {
}
},
headerActions: {
canCreate: this.$hasPerm('terminal.add_endpoint'),
hasMoreActions: false,
createRoute: 'EndpointCreate'
}

View File

@@ -41,6 +41,7 @@ export default {
}
},
headerActions: {
canCreate: this.$hasPerm('terminal.add_endpointrule'),
hasMoreActions: false,
createRoute: 'EndpointRuleCreate'
}

View File

@@ -20,6 +20,7 @@ export default {
const vm = this
return {
commandActions: {
canCreate: this.$hasPerm('terminal.add_commandstorage'),
hasExport: false,
hasImport: false,
hasRefresh: true,

View File

@@ -15,6 +15,7 @@ export default {
const storageOptions = getReplayStorageOptions()
return {
replayActions: {
canCreate: this.$hasPerm('terminal.add_replaystorage'),
hasExport: false,
hasImport: false,
hasRefresh: true,