@zhangqingcq/vgce 0.1.28 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangqingcq/vgce",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Vector graphics configure editor. svg组态编辑器。基于vue3.3+ts+element-plus+vite",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -142,6 +142,14 @@
142
142
 
143
143
  onMounted(() => {
144
144
  configStore.net.mqtt.useGlobalMqtt = Boolean(props.mqtt?.cover)
145
+ if (!configStore.net.mqtt.global) {
146
+ configStore.net.mqtt.global = {
147
+ url: '',
148
+ user: '',
149
+ pwd: '',
150
+ topics: ''
151
+ }
152
+ }
145
153
  configStore.net.mqtt.global.url = props.mqtt?.url || ''
146
154
  configStore.net.mqtt.global.user = props.mqtt?.user || ''
147
155
  configStore.net.mqtt.global.pwd = props.mqtt?.pwd || ''