perf: 修改 terminal 权限

This commit is contained in:
ibuler
2022-03-15 20:07:46 +08:00
committed by 老广
parent 1282b465f1
commit 5730ea8a75

View File

@@ -50,7 +50,9 @@ export default {
{
title: this.$t('xpack.ComponentMonitor'),
name: 'Monitor',
hidden: () => !this.$hasPerm('terminal.view_terminal')
hidden: () => {
return !this.$hasPerm('terminal.view_terminal') && this.$store.getters.hasValidLicense
}
}
]
}