|
@@ -77,15 +77,15 @@ export default {
|
|
|
// 如果没有业务线,但是页面又是工作台
|
|
|
if (this.bizId === -1 && to.name.search(/工作台/) > 0) this.getDefaultBizId(true)
|
|
|
// 如果是业务线选择页面,不作处理
|
|
|
- if (to.name.search(/工作台|业务线/) >= 0) return
|
|
|
+ if (to.name.search(/工作台|业务线/) >= 0) { this.showpage = true; return }
|
|
|
// 如果与原路由相同,不作处理
|
|
|
- if (from && to.path === from.path) return
|
|
|
+ if (from && to.path === from.path) { this.showpage = true; return }
|
|
|
// 如果已存在业务线ID(第一优先级)
|
|
|
if (this.bizId !== -1) this.redirectPage()
|
|
|
// 业务线不存在,但是url上面带bizId或者bizId_id的(第二优先级)
|
|
|
- if (this.$route.query.bizId || this.$route.query.bizId_id) await this.handlerPage()
|
|
|
+ if (this.$route.query.bizId || this.$route.query.bizId_id) this.handlerPage()
|
|
|
// 如果前往路由中参数中bizId和bizId_id都不存在,去获取默认bizId(第三优先级)
|
|
|
- if (!to.query.bizId && !to.query.bizId_id) await this.getDefaultBizId()
|
|
|
+ if (!to.query.bizId && !to.query.bizId_id) this.getDefaultBizId()
|
|
|
this.showpage = true
|
|
|
},
|
|
|
// 页面路由替换(增加bizId参数,只替换非详情页)
|
|
@@ -128,6 +128,9 @@ export default {
|
|
|
this.$store.dispatch('global/setBizId', nowBiz.code)
|
|
|
this.$store.dispatch('global/setBizName', nowBiz.name)
|
|
|
localStorage.setItem('bizId', nowBiz.code)
|
|
|
+ setTimeout(() => {
|
|
|
+ this.showpage = true
|
|
|
+ }, 100)
|
|
|
if (noQuery) return // 如果是不需要url参数的,直接返回
|
|
|
this.redirectPage()
|
|
|
} else {
|