DESKTOP-SVI9JE1\muzen hai 1 ano
pai
achega
a117b11b14
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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
+      }
     },
 
     // 修改设备模式