wangzhibo
2026-08-31 17ac2ce0ed52874616c79c910667e41e34604826
xiaozhi-esp32-server/main/manager-web/src/components/ProviderDialog.vue
@@ -1,7 +1,7 @@
<template>
  <CustomDialog
    :title="title"
    :visible.sync="visible"
    :visible.sync="dialogVisible"
    width="57%"
    class="provider-dialog-wrapper"
    @confirm="submit"
@@ -138,6 +138,7 @@
  },
  data() {
    return {
      dialogVisible: this.visible,
      saving: false,
      isAllFieldsSelected: false,
      tableKey: 0
@@ -326,9 +327,13 @@
  },
  watch: {
    visible(val) {
      this.dialogVisible = val;
      if (!val) {
        this.resetForm();
      }
    },
    dialogVisible(val) {
      this.$emit('update:visible', val);
    }
  }
};