From 17ac2ce0ed52874616c79c910667e41e34604826 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期一, 31 八月 2026 13:14:12 +0800
Subject: [PATCH] add translation app

---
 xiaozhi-esp32-server/main/manager-web/src/components/ReplacementWordDialog.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/xiaozhi-esp32-server/main/manager-web/src/components/ReplacementWordDialog.vue b/xiaozhi-esp32-server/main/manager-web/src/components/ReplacementWordDialog.vue
index 5b536f4..a33e260 100644
--- a/xiaozhi-esp32-server/main/manager-web/src/components/ReplacementWordDialog.vue
+++ b/xiaozhi-esp32-server/main/manager-web/src/components/ReplacementWordDialog.vue
@@ -1,7 +1,7 @@
 <template>
   <CustomDialog
     :title="title"
-    :visible.sync="visible"
+    :visible.sync="dialogVisible"
     width="700px"
     class="param-dialog-wrapper"
     @confirm="submit"
@@ -126,6 +126,7 @@
     };
 
     return {
+      dialogVisible: this.visible,
       dialogKey: Date.now(),
       saving: false,
       localForm: {
@@ -243,6 +244,7 @@
   },
   watch: {
     visible(newVal) {
+      this.dialogVisible = newVal;
       if (newVal) {
         this.localForm.id = this.form.id;
         this.localForm.fileName = this.form.fileName || '';
@@ -256,6 +258,9 @@
       } else {
         this.saving = false;
       }
+    },
+    dialogVisible(val) {
+      this.$emit('update:visible', val);
     }
   }
 };

--
Gitblit v1.9.1