修复code二维码长按识别调整开通vip后返回页面

This commit is contained in:
唐明明
2021-09-29 17:53:14 +08:00
parent c0ef649ff5
commit e76c84789b
4 changed files with 26 additions and 12 deletions

View File

@@ -24,11 +24,11 @@ const router = createRouter({
router.beforeEach((to, from, next) => {
const token = store.getters.getToken || uni.getStorageSync('token')
// 检查是否需要微信授权
if(store.getters.getCode === '' && to.name != 'wxAuth'){
next({
name: 'wxAuth'
})
}
// if(store.getters.getCode === '' && to.name != 'wxAuth'){
// next({
// name: 'wxAuth'
// })
// }
// 检查是否需要登录
if(to.auth && token === ''){
next({