mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-22 11:39:29 +00:00
fix: AssetPermissionAccount page clone failed
This commit is contained in:
@@ -81,6 +81,9 @@ export const accountOtherActions = (vm) => [
|
|||||||
{
|
{
|
||||||
name: 'Clone',
|
name: 'Clone',
|
||||||
title: vm.$t('Duplicate'),
|
title: vm.$t('Duplicate'),
|
||||||
|
has: () => {
|
||||||
|
return !vm.asset
|
||||||
|
},
|
||||||
can: vm.$hasPerm('accounts.add_account') && !vm.$store.getters.currentOrgIsRoot,
|
can: vm.$hasPerm('accounts.add_account') && !vm.$store.getters.currentOrgIsRoot,
|
||||||
callback: ({ row }) => {
|
callback: ({ row }) => {
|
||||||
vm.account = {
|
vm.account = {
|
||||||
|
Reference in New Issue
Block a user