Fixed: Fix the infinite viewing loop issue between viewing assets in account details and viewing accounts in asset details

This commit is contained in:
zhaojisen
2025-03-06 16:33:53 +08:00
committed by ZhaoJiSen
parent 22170c18f8
commit 1337b0ff34

View File

@@ -228,12 +228,7 @@ export default {
],
formatters: {
asset: (item, value) => {
const route = {
name: 'AssetDetail',
params: { id: this.object.asset.id }
}
return <router-link to={route}>{value?.name}</router-link>
return <span>{ value?.name }</span>
},
su_from: (item, value) => {
return <span>{value?.name ? value?.name + `(${value?.username})` : ''}</span>
@@ -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
})
}
}
}