Browse Source

fix: 首页携带Id跳转

Cooklalala 5 tháng trước cách đây
mục cha
commit
744ec83db7
2 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 1 0
      src/components/Customize/map/index.vue
  2. 10 0
      src/views/page1/index.vue

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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`)

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác