|
@@ -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
|
|
|
}
|
|
|
})
|