From ea8001a9c8a172e052b6891c3f9c1e5c0c6fbc8c Mon Sep 17 00:00:00 2001 From: lww155 <756794909@qq.com> Date: Fri, 6 Feb 2026 14:49:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=A8=A1=E6=80=81=E6=A1=86=E9=97=AA?= =?UTF-8?q?=E7=83=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/manager-web/src/components/ParamDialog.vue | 5 ++--- main/manager-web/src/components/VoicePrintDialog.vue | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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 From f68fc5c90dfe31aa7a7b62e9dc482b7f039fab26 Mon Sep 17 00:00:00 2001 From: lww155 <756794909@qq.com> Date: Fri, 6 Feb 2026 16:37:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=A1=86=E6=97=A0=E6=B3=95=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/manager-web/src/components/HeaderBar.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/manager-web/src/components/HeaderBar.vue b/main/manager-web/src/components/HeaderBar.vue index 5e43eb83..dc9c6fb5 100644 --- a/main/manager-web/src/components/HeaderBar.vue +++ b/main/manager-web/src/components/HeaderBar.vue @@ -210,6 +210,7 @@ export default { paramDropdownVisible: false, voiceCloneDropdownVisible: false, userMenuVisible: false, // 添加用户菜单可见状态 + menuVisibleTimer: null, // 菜单显示定时器,防止够快触发 isSmallScreen: false, // 搜索历史相关 searchHistory: [], @@ -631,7 +632,12 @@ export default { // 处理用户菜单可见性变化 handleUserMenuVisibleChange(visible) { - this.userMenuVisible = visible; + if (this.menuVisibleTimer) return; + this.menuVisibleTimer = setTimeout(() => { + this.userMenuVisible = visible; + clearTimeout(this.menuVisibleTimer); + this.menuVisibleTimer = null; + }, 100); // 如果菜单关闭了,也要清空选择值 if (!visible) {