fix: Asset detail account copy to asset and move to asset failed

This commit is contained in:
w940853815
2025-03-05 17:12:01 +08:00
committed by w940853815
parent bfab828813
commit 1121af7441

View File

@@ -148,6 +148,9 @@ export const accountOtherActions = (vm) => [
title: vm.$t('CopyToAsset'),
type: 'primary',
divided: true,
has: () => {
return !vm.asset
},
callback: ({ row }) => {
vm.accountCreateUpdateTitle = vm.$t('CopyToOther')
vm.$route.query.flag = 'copy'
@@ -160,6 +163,9 @@ export const accountOtherActions = (vm) => [
name: 'MoveToOther',
title: vm.$t('MoveToAsset'),
type: 'primary',
has: () => {
return !vm.asset
},
callback: ({ row }) => {
vm.accountCreateUpdateTitle = vm.$t('MoveToOther')
vm.$route.query.flag = 'move'