Parcourir la source

fix: 首页携带Id跳转

Cooklalala il y a 5 mois
Parent
commit
744ec83db7
2 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 1 0
      src/components/Customize/map/index.vue
  2. 10 0
      src/views/page1/index.vue

Fichier diff supprimé car celui-ci est trop grand
+ 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`)

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff