perf: Applets drop account template

This commit is contained in:
feng
2025-05-14 16:16:49 +08:00
committed by feng626
parent 8e2f79aea1
commit edb6be1d51
2 changed files with 3 additions and 0 deletions

View File

@@ -37,6 +37,7 @@
{{ $t('Add') }}
</el-button>
<el-button
v-if="$hasLicense() || $route.name !== 'Applets'"
:disabled="!$hasPerm('accounts.view_accounttemplate')"
size="mini"
type="success"
@@ -98,6 +99,7 @@ export default {
},
data() {
const accounts = this.value || []
return {
accounts: accounts,
drawerRefName: null,

View File

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