perf: 全局组织下资产详情不能模版添加账号

This commit is contained in:
“huailei000”
2023-02-23 19:04:13 +08:00
committed by huailei
parent d74e70893e
commit 0346630f02

View File

@@ -56,7 +56,7 @@ export default {
{
name: this.$t('route.AccountTemplate'),
title: this.$t('route.AccountTemplate'),
can: () => this.$hasPerm('accounts.view_accounttemplate'),
can: () => this.$hasPerm('accounts.view_accounttemplate') && !this.$store.getters.currentOrgIsRoot,
callback: () => {
this.templateDialogVisible = true
}