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

bug fix: 路由表写错了

任一存 пре 2 година
родитељ
комит
9efc468d0d
3 измењених фајлова са 7 додато и 7 уклоњено
  1. 5 5
      src/router/index.js
  2. 1 1
      src/views/ObliqueView.vue
  3. 1 1
      src/views/PanoView.vue

+ 5 - 5
src/router/index.js

@@ -73,8 +73,8 @@ const routes = [
     },
     children: [
       {
-        path: '/pano-list',
-        name: 'PanoList',
+        path: 'pano-list',
+        name: 'PanoListInOblique',
         component: PanoList,
         meta: {
           isShowBottomBar: false,
@@ -101,8 +101,8 @@ const routes = [
     },
     children: [
       {
-        path: '/pano-list',
-        name: 'PanoList',
+        path: 'pano-list',
+        name: 'PanoListInPano',
         component: PanoList,
         meta: {
           isShowBottomBar: false,
@@ -121,7 +121,7 @@ const routes = [
     },
     children: [
       {
-        path: '/relic-detail',
+        path: 'relic-detail',
         name: 'RelicDetail',
         component: RelicDetail,
         meta: {

+ 1 - 1
src/views/ObliqueView.vue

@@ -223,7 +223,7 @@ export default {
       _layer.addGraphic(graphic)
     },
     onClickSwitchPano() {
-      this.$router.push({ name: 'PanoList' })
+      this.$router.push({ name: 'PanoListInOblique' })
     }
   }, //如果页面有keep-alive缓存功能,这个函数会触发
 }

+ 1 - 1
src/views/PanoView.vue

@@ -116,7 +116,7 @@ export default {
       this.$router.push({ name: 'ObliqueView' })
     }, 1000),
     onClickSwitchPano() {
-      this.$router.push({ name: 'PanoList' })
+      this.$router.push({ name: 'PanoListInPano' })
     }
   },
 }