Compare commits

...

2 Commits

Author SHA1 Message Date
7c70de5fe0 Merge branch 'master' of https://git.yuzhankeji.cn/zhangjing/douhuo-h5 2023-09-28 14:34:28 +08:00
8af51c5bb6 [抖火客户端H5] 2023-09-28 14:34:21 +08:00

View File

@@ -30,20 +30,20 @@ router.beforeEach((to, from, next) => {
return
}
// 检查用户是否授权了微信
if(to.name != 'webWechatIndex' && openId === ''){
authFollow({
url: 'https://web.douhuotest.douhuofalv.com/webWechat/index'
// url: 'https://web.douhuofalv.com/webWechat/index'
}).then(res => {
window.location.href = res
}).catch(err => {
uni.showToast({
title: err.message,
icon: "none"
})
})
return
}
// if(to.name != 'webWechatIndex' && openId === ''){
// authFollow({
// url: 'https://web.douhuotest.douhuofalv.com/webWechat/index'
// // url: 'https://web.douhuofalv.com/webWechat/index'
// }).then(res => {
// window.location.href = res
// }).catch(err => {
// uni.showToast({
// title: err.message,
// icon: "none"
// })
// })
// return
// }
// 检查是否需要登录
if(to.auth && token === ''){