Browse Source

有type参数没有token让跳转到公众号

feature
mk 10 months ago
parent
commit
1b73c0e13a
  1. 4
      src/router/index.js

4
src/router/index.js

@ -57,6 +57,10 @@ router.beforeEach((to, from, next) => {
}else{
store.commit('SET_HOUSE_ID', null)
}
if(urlParams.type && !localStorage.getItem('token') ){
location.href = 'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzkxNzQ5MzUzNg==&scene=110#wechat_redirect'
return
}
if (urlParams.appId) {
if (localStorage.getItem('appId') && urlParams.appId !== localStorage.getItem('appId')) {
localStorage.removeItem('token')

Loading…
Cancel
Save