Bladeren bron

首页提交

chenxr3 4 jaren geleden
bovenliggende
commit
4b5c5dd8a6

+ 11 - 0
ebc-middle-platform/src/modules/orientation/orientation.vue

@ -270,6 +270,16 @@ export default {
270 270
      orgId: ''
271 271
    }
272 272
  },
273
  beforeRouteEnter(to, form, next) {
274
    console.log(form)
275
    if (form.path != '/refresh') {
276
      next(vm => {
277
        vm.$router.replace('/refresh')
278
      })
279
    } else {
280
      next()
281
    }
282
  },
273 283
  mounted() {
274 284
    // this.getGisToken().then(() => { // 获取gistoken后加载地图
275 285
    // })
@ -997,6 +1007,7 @@ export default {
997 1007
          }
998 1008
          this.trackPath = new Ai.DynamicPath(coords, defaultOptions)
999 1009
          this.trackMap.addLayer(this.trackPath)
1010
          this.trackMap.setViewPort([this.trackPath])
1000 1011
          this.trackPath.playTraceOn(this.trackMap)
1001 1012
        })
1002 1013
        .catch((res) => {

+ 22 - 0
ebc-middle-platform/src/modules/refresh.vue

@ -0,0 +1,22 @@
1
<!-- 空页面,负责中转到目标页面 -->
2
<template>
3
  <div></div>
4
</template>
5
6
<script>
7
export default {
8
  name: 'Refresh',
9
  data () {
10
    return {
11
    }
12
  },
13
  beforeRouteEnter (to, from, next) {
14
    next(vm => {
15
      console.log(to.path)
16
      vm.$router.replace('/orientation')
17
    })
18
  }
19
}
20
</script>
21
<style scoped>
22
</style>

+ 3 - 0
ebc-middle-platform/src/modules/tags-nav/store.js

@ -31,6 +31,9 @@ const getRouteTitleHandled = (route) => {
31 31
 * @description 本地存储和获取标签导航列表
32 32
 */
33 33
const setTagNavListInLocalstorage = list => {
34
  list = list.filter( e => {
35
    return e.name != 'refresh'
36
  })
34 37
  localStorage.tagNaveList = JSON.stringify(list)
35 38
}
36 39
/**

+ 9 - 0
ebc-middle-platform/src/routes.js

@ -14,6 +14,15 @@ export default [
14 14
    component: () => import(/* webpackChunkName: "user" */ '@/modules/user/login/login.vue')
15 15
  },
16 16
  {
17
    name: 'refresh',
18
    path: '/refresh',
19
    meta: {
20
      title:'刷新页',
21
      ignoreAuth:false
22
    },
23
    component:() => import(/* webpackChunkName:"user" */ '@/modules/refresh.vue')
24
  },
25
  {
17 26
    name: 'register-select-way',
18 27
    path: '/register-select-way',
19 28
    meta: {