wangzhibo
2026-08-31 17ac2ce0ed52874616c79c910667e41e34604826
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);
    }
  }
};