|
|
@ -65,7 +65,7 @@ router.beforeEach((to, from, next) => { |
|
|
|
store.commit('SET_APP_ID', urlParams.appId) |
|
|
|
localStorage.setItem('appId', urlParams.appId) |
|
|
|
} else { |
|
|
|
store.commit('SET_APP_ID', 'wx1078fa1e99424de9') |
|
|
|
store.commit('SET_APP_ID', 'wxce2db0866b0698f8') |
|
|
|
// store.commit('SET_APP_ID', localStorage.getItem('appId'))
|
|
|
|
} |
|
|
|
// if (!localStorage.getItem('appId') && to.path !== '/errorPage'&& to.path != '/houseQR') {
|
|
|
@ -97,7 +97,7 @@ router.beforeEach((to, from, next) => { |
|
|
|
}) |
|
|
|
} else { |
|
|
|
if (getQueryStringByName('code') && (to.path != '/houseQR' && to.path != '/peoSuggestion'&& to.path != '/solicitationDaily' && to.path != '/peoSuggestionexplain')) { |
|
|
|
login({ wxCode: getQueryStringByName('code'),appId:'wx1078fa1e99424de9'}).then(res => { |
|
|
|
login({ wxCode: getQueryStringByName('code'),appId:'wxce2db0866b0698f8'}).then(res => { |
|
|
|
localStorage.setItem('token', res.data.token) |
|
|
|
localStorage.setItem('userId', res.data.userH5DTO.id) |
|
|
|
let state; |
|
|
|