diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 570f2a5..43aeb7c 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -238,7 +238,7 @@ const wxAuthGetCode = () => { // var appId = "wx35766a64d73d08a9"; var appId = "wx41d80a1bb01f658d"; - var url = URLEncode(window.location.href); + var url = encodeURI(window.location.href); window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${url}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`