mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 11:10:51 +00:00
Fixed: Fix the issues with deleting an account and retrieving account information in the asset details.
This commit is contained in:
parent
52ca8f55a2
commit
6fa4efaa5f
@ -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,
|
||||
|
@ -46,7 +46,7 @@ export default {
|
||||
},
|
||||
url: {
|
||||
type: String,
|
||||
default: '/api/v1/accounts/accounts/'
|
||||
default: ''
|
||||
},
|
||||
extraQuickActions: {
|
||||
type: Array,
|
||||
|
Loading…
Reference in New Issue
Block a user