浏览代码

常规提交

sunzehao 2 周之前
父节点
当前提交
4959a90c68
共有 3 个文件被更改,包括 3 次插入8 次删除
  1. 1 1
      src/App.vue
  2. 1 6
      src/views/cesiumComponents/windMap2D.vue
  3. 1 1
      src/views/cesiumComponents/windView.vue

+ 1 - 1
src/App.vue

@@ -5,7 +5,7 @@
         <p>“天镜” 数字孪生可视化引擎</p>
     </div> -->
 
-    <RouterView />
+    <RouterView :key="$route.fullPath" />
 </template>
 
 <script>

+ 1 - 6
src/views/cesiumComponents/windMap2D.vue

@@ -66,13 +66,13 @@
       :modelVal="modelVal"
       @showDia="showComDia"
     />
+      <!-- @backStations="backStations" -->
     <windView
       v-if="showWindDetail"
       @coverOnChange="coverOnChange"
       :currentHeight="currentHeight"
       :fjLonLatJsonArr="fjLonLatJsonArr.data"
       @showDetail="menuComTSty"
-      @backStations="backStations"
       @resetChangeWind="resetChangeWind"
       @initView="resetWindViewport"
     />
@@ -393,8 +393,6 @@ export default {
     // 展示所选风场的风机
     showWindFromStation(viewer) {
       let stationName = this.$route.query.nameEn;
-        console.log("nameEn====>>>>")
-
       let fjLonLatJson = [];
       this.fjLonLatJsonArr = []
       let url = ""
@@ -414,9 +412,7 @@ export default {
       }
 
       const ws = useWebSocket(url)
-
     //   let wsRes = ws.messages.windMachineList
-    console.log("wsres1====>>>>")
 
       this.fjLonLatJsonArr = fjLonLatJson
       fjLonLatJson.data.forEach((e, index) => {
@@ -439,7 +435,6 @@ export default {
           }
         }
       });
-      console.log("wsres2====>>>>")
       this.resetWindViewport();
     },
     // 根据状态展示不同颜色风机贴图

+ 1 - 1
src/views/cesiumComponents/windView.vue

@@ -1088,7 +1088,7 @@ export default {
       }
     },
     backStations() {
-      // this.$emit("backStations")
+    //   this.$emit("backStations")
       this.$router.push({
         path: "/",
       });