fix: Fixed the issue where the drawer would close when updating the cloud account

This commit is contained in:
jiangweidong 2025-04-15 14:17:58 +08:00 committed by Bryan
parent 67eb359f15
commit 26f5516398
2 changed files with 9 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="item-info">
<el-row>
<el-col v-for="item of infos" :key="item.content" :span="12" class="panel-item">
<el-col v-for="(item, i) of infos" :key="i" :span="12" class="panel-item">
<small class="item-label">{{ item.title }}</small>
<h4 class="item-value">{{ item.content }}</h4>
</el-col>

View File

@ -175,18 +175,16 @@ export default {
form.validate((valid) => {
if (valid) {
btn.loading = true
this.$refs.form.$refs.form.dataForm.submitForm('form', false)
if (this.origin === 'update') {
setTimeout(() => {
this.$emit('submitSuccess')
this.$emit('update:visible', false)
}, 500)
}
this.submitType = submitType
}
})
this.$refs.form.$refs.form.dataForm.submitForm('form', false)
if (this.origin === 'update') {
setTimeout(() => {
this.$emit('submitSuccess')
this.$emit('update:visible', false)
}, 500)
}
this.submitType = submitType
},
handleSubmitSuccess(res) {
if (this.submitType === 'manual') {