mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
Fixed: Fix the infinite viewing loop issue between viewing assets in account details and viewing accounts in asset details
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user