修复弹框关掉后再点不开

之前几个弹框改用新底座的时候,关闭那一路少了一段转发:父页面用双向绑定来收弹框关闭的信号,子页面应该再把关闭事件抛上去告诉父页面。这一段被删了,下次再点添加按钮时父页面那边状态没复位,弹框就拉不开来。现在把这段补回去。
This commit is contained in:
hrz 2026-10-06 11:51:24 +08:00
parent 6b25d8f7f0
commit 6b625dc740
3 changed files with 5 additions and 0 deletions

View file

@ -74,9 +74,11 @@ export default {
},
cancel() {
this.deviceCode = "";
this.$emit('update:visible', false);
},
handleClose() {
this.deviceCode = "";
this.$emit('update:visible', false);
}
}
}

View file

@ -67,9 +67,11 @@ export default {
},
cancel() {
this.wisdomBodyName = "";
this.$emit('update:visible', false);
},
handleClose() {
this.wisdomBodyName = "";
this.$emit('update:visible', false);
}
}
}

View file

@ -149,6 +149,7 @@ export default {
cancel() {
this.saving = false; // 取消时重置状态
this.dialogKey = Date.now();
this.$emit('update:visible', false);
this.$emit('cancel');
},