mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix: 修复创建资产时删除一个账号会全部删除的问题
This commit is contained in:
@@ -92,8 +92,15 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
removeAccount(account) {
|
||||
console.log('>>>>>>', account, this.accounts)
|
||||
this.accounts = this.accounts.filter((item) => {
|
||||
return item.id !== account.id
|
||||
if (account.id && item.id) {
|
||||
return item.id !== account.id
|
||||
} else if (account.username && item.username) {
|
||||
return item.username !== account.username
|
||||
} else {
|
||||
return account.name !== item.name
|
||||
}
|
||||
})
|
||||
},
|
||||
onEditClick(account) {
|
||||
|
||||
Reference in New Issue
Block a user