mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
修复弹框关掉后再点不开
之前几个弹框改用新底座的时候,关闭那一路少了一段转发:父页面用双向绑定来收弹框关闭的信号,子页面应该再把关闭事件抛上去告诉父页面。这一段被删了,下次再点添加按钮时父页面那边状态没复位,弹框就拉不开来。现在把这段补回去。
This commit is contained in:
parent
6b25d8f7f0
commit
6b625dc740
3 changed files with 5 additions and 0 deletions
|
|
@ -74,9 +74,11 @@ export default {
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
this.deviceCode = "";
|
this.deviceCode = "";
|
||||||
|
this.$emit('update:visible', false);
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.deviceCode = "";
|
this.deviceCode = "";
|
||||||
|
this.$emit('update:visible', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,11 @@ export default {
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
this.wisdomBodyName = "";
|
this.wisdomBodyName = "";
|
||||||
|
this.$emit('update:visible', false);
|
||||||
},
|
},
|
||||||
handleClose() {
|
handleClose() {
|
||||||
this.wisdomBodyName = "";
|
this.wisdomBodyName = "";
|
||||||
|
this.$emit('update:visible', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,7 @@ export default {
|
||||||
cancel() {
|
cancel() {
|
||||||
this.saving = false; // 取消时重置状态
|
this.saving = false; // 取消时重置状态
|
||||||
this.dialogKey = Date.now();
|
this.dialogKey = Date.now();
|
||||||
|
this.$emit('update:visible', false);
|
||||||
this.$emit('cancel');
|
this.$emit('cancel');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue