From 8af51c5bb6ebdfa22f9b16e3a4a978e5aa3d954f Mon Sep 17 00:00:00 2001 From: zhangjing Date: Thu, 28 Sep 2023 14:34:21 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8A=96=E7=81=AB=E5=AE=A2=E6=88=B7=E7=AB=AFH?= =?UTF-8?q?5]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/index.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/router/index.js b/router/index.js index 714ff38..83a5322 100644 --- a/router/index.js +++ b/router/index.js @@ -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 === ''){