Bladeren bron

首页提交

chenxr3 4 jaren geleden
bovenliggende
commit
4b5c5dd8a6

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

270
      orgId: ''
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
  mounted() {
283
  mounted() {
274
    // this.getGisToken().then(() => { // 获取gistoken后加载地图
284
    // this.getGisToken().then(() => { // 获取gistoken后加载地图
275
    // })
285
    // })
997
          }
1007
          }
998
          this.trackPath = new Ai.DynamicPath(coords, defaultOptions)
1008
          this.trackPath = new Ai.DynamicPath(coords, defaultOptions)
999
          this.trackMap.addLayer(this.trackPath)
1009
          this.trackMap.addLayer(this.trackPath)
1010
          this.trackMap.setViewPort([this.trackPath])
1000
          this.trackPath.playTraceOn(this.trackMap)
1011
          this.trackPath.playTraceOn(this.trackMap)
1001
        })
1012
        })
1002
        .catch((res) => {
1013
        .catch((res) => {

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

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

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

14
    component: () => import(/* webpackChunkName: "user" */ '@/modules/user/login/login.vue')
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
    name: 'register-select-way',
26
    name: 'register-select-way',
18
    path: '/register-select-way',
27
    path: '/register-select-way',
19
    meta: {
28
    meta: {