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

+ 5 - 5
src/views/device/class/detail.vue

@@ -98,8 +98,9 @@ export default {
         id: this.$route.query.id,
         deviceIds: [],
         typeList: [{
-          functionList: []
-        }]
+          functionList: [],
+          icon: ''
+        }],
       },
       // 校验
       rules: {
@@ -173,8 +174,7 @@ export default {
         type: null,
         functionList: [],
         connectType: null,
-        icon1: '',
-        icon2: '',
+        icon: '',
         guidePageContent: ''
       })
     },
@@ -199,7 +199,7 @@ export default {
       })
       // 除了设备模式都为空
       Object.keys(i).map(e => {
-        if (!['type', 'icon1', 'icon2'].includes(e)) {
+        if (!['type', 'icon'].includes(e)) {
           i[e] = e === 'functionList' ? [] : null
         }
       })