chenxr3 4 years ago
parent
commit
f5a7ef17bd
1 changed files with 10 additions and 10 deletions
  1. 10 10
      ebc-middle-platform/src/modules/orientation/orientation.vue

+ 10 - 10
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
  // 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
  // },
283
  mounted() {
283
  mounted() {
284
    // this.getGisToken().then(() => { // 获取gistoken后加载地图
284
    // this.getGisToken().then(() => { // 获取gistoken后加载地图
285
    // })
285
    // })