1
0
mirror of https://github.com/jumpserver/lina.git synced 2025-05-11 01:27:13 +00:00

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
parent 60163a6026
commit 324bb721d9
2 changed files with 9 additions and 11 deletions
src
components/Table/InfoCardTable
views/assets/Cloud/Account/components

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') {