mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-28 03:20:24 +00:00
fix: Fixed the issue where the drawer would close when updating the cloud account
This commit is contained in:
parent
67eb359f15
commit
26f5516398
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<el-row>
|
<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>
|
<small class="item-label">{{ item.title }}</small>
|
||||||
<h4 class="item-value">{{ item.content }}</h4>
|
<h4 class="item-value">{{ item.content }}</h4>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -175,18 +175,16 @@ export default {
|
|||||||
form.validate((valid) => {
|
form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
btn.loading = true
|
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) {
|
handleSubmitSuccess(res) {
|
||||||
if (this.submitType === 'manual') {
|
if (this.submitType === 'manual') {
|
||||||
|
Loading…
Reference in New Issue
Block a user