From 1337b0ff34b864752f0c7fd492cc21db41854cf2 Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Thu, 6 Mar 2025 16:33:53 +0800 Subject: [PATCH] Fixed: Fix the infinite viewing loop issue between viewing assets in account details and viewing accounts in asset details --- .../accounts/Account/AccountDetail/Detail.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/accounts/Account/AccountDetail/Detail.vue b/src/views/accounts/Account/AccountDetail/Detail.vue index ce8f4290b..07a4ff1a1 100644 --- a/src/views/accounts/Account/AccountDetail/Detail.vue +++ b/src/views/accounts/Account/AccountDetail/Detail.vue @@ -228,12 +228,7 @@ export default { ], formatters: { asset: (item, value) => { - const route = { - name: 'AssetDetail', - params: { id: this.object.asset.id } - } - - return {value?.name} + return { value?.name } }, su_from: (item, value) => { return {value?.name ? value?.name + `(${value?.username})` : ''} @@ -262,6 +257,14 @@ export default { ).then(res => { openTaskPage(res['task']) }) + }, + handleClick() { + this.drawerRefName = 'AssetDetail' + this.$route.params.id = this.object.asset.id + + this.$nextTick(() => { + this.pamDrawerShow = true + }) } } }