Merge pull request #3202 from dataease/pr@dev@fix_template-manage

fix(模板管理): 修复删除模板分类列表未刷新问题
This commit is contained in:
xuwei-fit2cloud 2022-09-27 15:45:34 +08:00 committed by GitHub
commit 5969ded4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@
ref="templateList" ref="templateList"
:template-type="currentTemplateType" :template-type="currentTemplateType"
:template-list="templateList" :template-list="templateList"
@templateDelete="templateDelete" @templateDelete="templateFolderDelete"
@templateEdit="templateEdit" @templateEdit="templateEdit"
@showCurrentTemplate="showCurrentTemplate" @showCurrentTemplate="showCurrentTemplate"
@templateImport="templateImport" @templateImport="templateImport"
@ -253,6 +253,14 @@ export default {
}); });
} }
}, },
templateFolderDelete(id) {
if (id) {
templateDelete(id).then((response) => {
this.openMessageSuccess("commons.delete_success");
this.getTree()
});
}
},
templateDelete(id) { templateDelete(id) {
if (id) { if (id) {
templateDelete(id).then((response) => { templateDelete(id).then((response) => {