forked from github/dataease
fix(数据源): 删除数据源时,同时清理页面缓存
This commit is contained in:
parent
6b1083442a
commit
04ceb4f9c7
@ -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 @@
|
|||||||
|
|
||||||
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user