UI fix message.add.vpn.customer.gateway.failed when catched error (#6493)

* UI fix message.add.vpn.customer.gateway.failed when catched error

* fix UI VPC add ACL  without required input  close ui 

Without any input, click ok button then close the ui . We need display ui to confirm all required input.

* remove commented line
This commit is contained in:
hooklee2000 2022-06-28 13:23:25 +08:00 committed by GitHub
parent 739be5d002
commit aee7bb9e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ export default {
this.formRef.value.resetFields()
}).catch(error => {
console.error(error)
this.$message.error(this.$t('message.success.add.vpn.customer.gateway'))
this.$message.error(this.$t('message.add.vpn.customer.gateway.failed'))
this.isSubmitted = false
})
}).catch(error => {

View File

@ -822,7 +822,6 @@ export default {
handleNetworkAclFormSubmit () {
if (this.fetchLoading) return
this.fetchLoading = true
this.modals.networkAcl = false
this.formRef.value.validate().then(() => {
const values = toRaw(this.form)
@ -852,6 +851,7 @@ export default {
}).catch(error => {
this.$notifyError(error)
}).finally(() => {
this.modals.networkAcl = false
this.fetchLoading = false
this.fetchAclList()
})