DESKTOP-SVI9JE1\muzen 1 anno fa
parent
commit
a117b11b14
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/views/device/class/detail.vue

+ 3 - 1
src/views/device/class/detail.vue

@@ -182,7 +182,9 @@ export default {
     // 删除子表单
     getDelete(type, index) {
       this.form.typeList.splice(index, 1)
-      this.devModeOptions.find(i => i.value == type).disabled = false
+      if (type) {
+        this.devModeOptions.find(i => i.value == type).disabled = false
+      }
     },
 
     // 修改设备模式