|
@ -52,7 +52,7 @@ function paramsFormat(params) { |
|
|
router.beforeEach((to, from, next) => { |
|
|
router.beforeEach((to, from, next) => { |
|
|
let urlParams = getQueryParams() |
|
|
let urlParams = getQueryParams() |
|
|
if(urlParams.houseId){ |
|
|
if(urlParams.houseId){ |
|
|
console.log(urlParams); |
|
|
console.log(urlParams,'初始路由参数'); |
|
|
store.commit('SET_HOUSE_ID', urlParams.houseId) |
|
|
store.commit('SET_HOUSE_ID', urlParams.houseId) |
|
|
}else{ |
|
|
}else{ |
|
|
store.commit('SET_HOUSE_ID', null) |
|
|
store.commit('SET_HOUSE_ID', null) |
|
@ -67,7 +67,7 @@ router.beforeEach((to, from, next) => { |
|
|
} else { |
|
|
} else { |
|
|
store.commit('SET_APP_ID', localStorage.getItem('appId')) |
|
|
store.commit('SET_APP_ID', localStorage.getItem('appId')) |
|
|
} |
|
|
} |
|
|
if (!localStorage.getItem('appId') && to.path !== '/errorPage') { |
|
|
if (!localStorage.getItem('appId') && to.path !== '/errorPage'&& to.path != '/houseQR') { |
|
|
if(to.path === '/errorPage'){ |
|
|
if(to.path === '/errorPage'){ |
|
|
next('/errorPage') |
|
|
next('/errorPage') |
|
|
}else{ |
|
|
}else{ |
|
|