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"
:template-type="currentTemplateType"
:template-list="templateList"
@templateDelete="templateDelete"
@templateDelete="templateFolderDelete"
@templateEdit="templateEdit"
@showCurrentTemplate="showCurrentTemplate"
@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) {
if (id) {
templateDelete(id).then((response) => {