Преглед изворни кода

修改图例在数据分析页面中的位置

画安 пре 3 недеља
родитељ
комит
f61b9e5b02
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/components/TongzhouTrafficMap.vue

+ 1 - 1
src/components/TongzhouTrafficMap.vue

@@ -104,7 +104,7 @@ export default {
       this.storeStatusCoordsToLocalStorage();
     });
 
-    if (this.$route.path === '/home') {
+    if (this.$route.path === '/home' || this.$route.path === '/watch') {
       this.privateStyle.legend = { right: "25%" };
     }
   },