UI: fix dedicate public ip range to domain (#6258)

This commit is contained in:
Wei Zhou 2022-04-14 06:19:23 +02:00 committed by GitHub
parent fbf77978e1
commit bbb4ffa593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -454,12 +454,17 @@ export default {
return
}
api('dedicatePublicIpRange', {
var params = {
id: this.selectedItem.id,
zoneid: this.selectedItem.zoneid,
domainid: this.addAccount.domain,
account: this.addAccount.account
}).catch(error => {
domainid: this.addAccount.domain
}
if (this.addAccount.account) {
params.account = this.addAccount.account
}
api('dedicatePublicIpRange', params).catch(error => {
this.$notifyError(error)
}).finally(() => {
this.addAccountModal = false