From 0232cf93201ee4f72131ca6c2f3451a06b9854c0 Mon Sep 17 00:00:00 2001 From: phidialam <2957035701@qq.com> Date: Sun, 29 Sep 2024 01:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E5=B7=A5=E5=85=B7=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=85=B3=E9=97=AD=E6=8A=BD=E5=B1=89=E5=89=8D=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/canteen/toolLink/editToolLink.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/canteen/toolLink/editToolLink.vue b/src/views/canteen/toolLink/editToolLink.vue index 9b471ee..db78d2d 100644 --- a/src/views/canteen/toolLink/editToolLink.vue +++ b/src/views/canteen/toolLink/editToolLink.vue @@ -5,6 +5,7 @@ direction="rtl" size="40%" custom-class="drawer-max-height" + :before-close="beforeClose" @close="onClose" >
@@ -280,6 +281,10 @@ export default { } this.showDraw = true; }, + // 关闭抽屉前 + beforeClose(done) { + this.$confirm("确定关闭吗?").then(_ => { this.visible = false; done(); }).catch(_ => { }); + }, // 关闭抽屉 onClose() { this.init();