diff --git a/store/modules/user.js b/store/modules/user.js index 2770cf7..8d22ce4 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -44,7 +44,7 @@ export default { // 登录 const appid = 'wxaf37fcd750cb3329' const redirect_uri = encodeURIComponent('https://guide.sz-trip.com/pages/login/login') - const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${state.toPath}&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect`; + const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect`; window.location.href = url // uni.navigateTo({ // url: '/pages/login/login' diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index b4d2784..0e2b5ab 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@