Fixed: Fix the issues with deleting an account and retrieving account information in the asset details.

This commit is contained in:
zhaojisen 2025-04-14 18:24:54 +08:00 committed by ZhaoJiSen
parent 52ca8f55a2
commit 6fa4efaa5f
2 changed files with 6 additions and 1 deletions

View File

@ -283,6 +283,11 @@ export default {
formatter: ActionsFormatter,
has: this.showActions,
formatterArgs: {
performDelete: ({ row }) => {
const id = row.id
const url = `/api/v1/accounts/accounts/${id}/`
return this.$axios.delete(url)
},
hasUpdate: false, // can set function(row, value)
hasDelete: true, // can set function(row, value)
hasClone: false,

View File

@ -46,7 +46,7 @@ export default {
},
url: {
type: String,
default: '/api/v1/accounts/accounts/'
default: ''
},
extraQuickActions: {
type: Array,