From 1121af7441e5bc8fd6e11bd8c3f307439f6d4145 Mon Sep 17 00:00:00 2001 From: w940853815 <940853815@qq.com> Date: Wed, 5 Mar 2025 17:12:01 +0800 Subject: [PATCH] fix: Asset detail account copy to asset and move to asset failed --- src/components/Apps/AccountListTable/const.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Apps/AccountListTable/const.js b/src/components/Apps/AccountListTable/const.js index 26e71e3b3..acd5521f0 100644 --- a/src/components/Apps/AccountListTable/const.js +++ b/src/components/Apps/AccountListTable/const.js @@ -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'