Skip to content

Commit

Permalink
🚸 工具链接关闭抽屉前确认
Browse files Browse the repository at this point in the history
  • Loading branch information
phidiaLam committed Sep 28, 2024
1 parent ff5e515 commit 0232cf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/canteen/toolLink/editToolLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
direction="rtl"
size="40%"
custom-class="drawer-max-height"
:before-close="beforeClose"
@close="onClose"
>
<div class="edit-area pr-24 pl-24">
Expand Down Expand Up @@ -280,6 +281,10 @@ export default {
}
this.showDraw = true;
},
// 关闭抽屉前
beforeClose(done) {
this.$confirm("确定关闭吗?").then(_ => { this.visible = false; done(); }).catch(_ => { });
},
// 关闭抽屉
onClose() {
this.init();
Expand Down

0 comments on commit 0232cf9

Please sign in to comment.