perf: Delete gather_account

This commit is contained in:
wangruidong
2024-12-20 18:13:25 +08:00
committed by w940853815
parent ac6040177a
commit d9ec7917f3

View File

@@ -20,9 +20,15 @@
</el-checkbox>
<ul>
<li v-for="item in assetAccounts" :key="item.id">
<a href="">
<router-link
:to="{
name: 'AssetAccountDetail',
params: { id: item.id }
}"
target="_blank"
>
{{ item.name }}({{ item.username }}) - {{ account.asset.name }}
</a>
</router-link>
</li>
</ul>
</div>
@@ -119,10 +125,13 @@ export default {
})
},
handleConfirm() {
this.$axios.delete('/api/v1/accounts/gathered-accounts/', {
const url = '/api/v1/accounts/gathered-accounts/'
this.$axios.delete(url, {
params: {
username: this.account.username,
asset: this.account.asset.id
asset: this.account.asset.id,
is_delete_account: this.iDeleteAccount,
is_delete_remote: this.iDeleteRemote
}
}).then(res => {
this.$message.success('删除成功')