From 9d9cafd74aaeff2d52b5d803a2beda439bb460ac Mon Sep 17 00:00:00 2001 From: tcubic <123456> Date: Mon, 8 Aug 2022 18:17:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Home/Home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index cae468d..b8fd797 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -242,7 +242,7 @@ const wxAuthGetCode = () => { - var url = window.location.href; + var url = urlEncode(window.location.href); // window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ appId +'&redirect_uri='+ REDIRECT_URI +'&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect'; window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx35766a64d73d08a9&redirect_uri={{url}}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect`