提交 04871b18 authored 作者: taojinlong's avatar taojinlong

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

上级 1c058ad8
...@@ -241,6 +241,7 @@ export default { ...@@ -241,6 +241,7 @@ export default {
}).then(() => { }).then(() => {
delDs(datasource.id).then(res => { delDs(datasource.id).then(res => {
this.$success(this.$t('commons.delete_success')) this.$success(this.$t('commons.delete_success'))
this.switchMain('DataHome')
this.refreshType(datasource) this.refreshType(datasource)
}) })
}).catch(() => { }).catch(() => {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-form ref="dsForm" :model="form" :rules="rule" size="small" <el-form ref="dsForm" :model="form" :rules="rule" size="small"
:disabled="params && params.id && params.showModel && params.showModel === 'show' && !canEdit " :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-form-item :label="$t('commons.name')" prop="name">
<el-input v-model="form.name" autocomplete="off"/> <el-input v-model="form.name" autocomplete="off"/>
</el-form-item> </el-form-item>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论