UI: Fixes error when delete domain (#5710)

* fixes error when delete domain with polljob response not have jobstatus

* fix listdomain not refresh after deleted
This commit is contained in:
Hoang Nguyen 2021-12-20 14:05:32 +07:00 committed by GitHub
parent 79d924f3ee
commit 29c7518613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -248,8 +248,7 @@ export default {
description: this.resource.name,
successMethod: result => {
if (this.action.api === 'deleteDomain') {
this.$set(this.resource, 'isDel', true)
this.parentUpdActionData(this.resource)
this.parentFetchData()
}
if (this.action.response) {
const description = this.action.response(result.jobresult)