Browse Source

修改更新位置

caner 1 year ago
parent
commit
06590f4084
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/App.vue

+ 2 - 1
src/App.vue

@@ -41,7 +41,6 @@ watch(() => store.mqtt_message, (val) => {
   if (val.type === 'WebRtcConnected') {
   if (val.type === 'WebRtcConnected') {
     store.setLoading(false)
     store.setLoading(false)
     store.setRtcConnected(true)
     store.setRtcConnected(true)
-    logi.init()
   }
   }
   // mqtt ERROR
   // mqtt ERROR
   if (store.errorDic[val.type]) {
   if (store.errorDic[val.type]) {
@@ -52,6 +51,8 @@ watch(() => store.mqtt_message, (val) => {
   }
   }
 })
 })
 
 
+onMounted(() => logi.init())
+
 provide('MQTT', mqtt)
 provide('MQTT', mqtt)
 
 
 </script>
 </script>