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();