Browse Source

fix: 首页携带Id跳转

Cooklalala 5 months ago
parent
commit
744ec83db7
2 changed files with 11 additions and 0 deletions
  1. 1 0
      src/components/Customize/map/index.vue
  2. 10 0
      src/views/page1/index.vue

File diff suppressed because it is too large
+ 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`)

Some files were not shown because too many files changed in this diff