瀏覽代碼

fix: 首页携带Id跳转

Cooklalala 5 月之前
父節點
當前提交
744ec83db7
共有 2 個文件被更改,包括 11 次插入0 次删除
  1. 1 0
      src/components/Customize/map/index.vue
  2. 10 0
      src/views/page1/index.vue

文件差異過大導致無法顯示
+ 1 - 0
src/components/Customize/map/index.vue


+ 10 - 0
src/views/page1/index.vue

@@ -57,6 +57,7 @@
       :dataArray="trendDataArray"
     />
     <threeMap
+      @toView="toView"
       class="animated zoomIn"
       style="
         position: absolute;
@@ -176,6 +177,15 @@ export default {
   },
   mounted() {},
   methods: {
+    toView(data) {
+      console.log(data)
+      this.$router.push({
+        path: `/page3`,
+        query: {
+          id: data,
+        },
+      })
+    },
     tabChange(val) {
       if (val === 0) {
         this.$router.push(`/page1`)

部分文件因文件數量過多而無法顯示