diff --git a/main/manager-web/src/components/ParamDialog.vue b/main/manager-web/src/components/ParamDialog.vue index 25b4b79b..8c30ef0b 100644 --- a/main/manager-web/src/components/ParamDialog.vue +++ b/main/manager-web/src/components/ParamDialog.vue @@ -105,6 +105,7 @@ export default { }, cancel() { this.saving = false; // 取消时重置状态 + this.dialogKey = Date.now(); this.$emit('cancel'); }, @@ -115,9 +116,7 @@ export default { }, watch: { visible(newVal) { - if (newVal) { - this.dialogKey = Date.now(); - } else { + if (!newVal) { // 当对话框关闭时,重置saving状态 this.saving = false; } diff --git a/main/manager-web/src/components/VoicePrintDialog.vue b/main/manager-web/src/components/VoicePrintDialog.vue index 174deda7..31786950 100644 --- a/main/manager-web/src/components/VoicePrintDialog.vue +++ b/main/manager-web/src/components/VoicePrintDialog.vue @@ -153,13 +153,13 @@ export default { }, cancel() { this.saving = false; // 取消时重置状态 + this.dialogKey = Date.now(); this.$emit('cancel'); } }, watch: { visible(newVal) { if (newVal) { - this.dialogKey = Date.now(); api.agent.getRecentlyFiftyByAgentId(this.agentId, ((data) => { this.valueTypeOptions = data.data.data.map(item => ({ ...item