fix(数据源): 删除数据源时,同时清理页面缓存

This commit is contained in:
taojinlong 2021-11-25 17:39:28 +08:00
parent 6b1083442a
commit 04ceb4f9c7
2 changed files with 2 additions and 1 deletions

View File

@ -241,6 +241,7 @@ export default {
}).then(() => {
delDs(datasource.id).then(res => {
this.$success(this.$t('commons.delete_success'))
this.switchMain('DataHome')
this.refreshType(datasource)
})
}).catch(() => {

View File

@ -10,7 +10,7 @@
<el-form ref="dsForm" :model="form" :rules="rule" size="small"
:disabled="params && params.id && params.showModel && params.showModel === 'show' && !canEdit "
label-width="auto" label-position="right">
label-width="180px" label-position="right">
<el-form-item :label="$t('commons.name')" prop="name">
<el-input v-model="form.name" autocomplete="off"/>
</el-form-item>