xiaozhi-esp32-server/main/manager-web/src/components/FirmwareDialog.vue
@@ -1,7 +1,7 @@ <template> <CustomDialog :title="title" :visible.sync="visible" :visible.sync="dialogVisible" width="800px" @confirm="submit" @close="cancel" @@ -72,6 +72,7 @@ data() { return { dialogVisible: this.visible, uploadProgress: 0, uploadStatus: '', isUploading: false, @@ -93,6 +94,14 @@ } } }, watch: { visible(val) { this.dialogVisible = val; }, dialogVisible(val) { this.$emit('update:visible', val); } }, computed: { isTypeDisabled() { // 如果有id,说明是编辑模式,禁用类型选择