Skip to content

Commit

Permalink
Merge pull request #59 from Enraged-Dun-Cookie-Development-Team/fix-t…
Browse files Browse the repository at this point in the history
…oollinkImg

🚸 工具链接关闭抽屉前确认
  • Loading branch information
phidiaLam authored Sep 28, 2024
2 parents bb5b25b + 0232cf9 commit 5c61aa3
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 5c61aa3

Please sign in to comment.