From 87306c41bedc248074408dbb4d190dc6bf7a0335 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 27 Sep 2022 15:12:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E6=A8=A1=E6=9D=BF=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=88=97=E8=A1=A8=E6=9C=AA=E5=88=B7=E6=96=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/template/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/panel/template/index.vue b/frontend/src/views/panel/template/index.vue index a9874ec1aa..15c99a174c 100644 --- a/frontend/src/views/panel/template/index.vue +++ b/frontend/src/views/panel/template/index.vue @@ -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) => {