diff --git a/src/page/Home/Home.vue b/src/page/Home/Home.vue index 1a4cdb1..48616ab 100644 --- a/src/page/Home/Home.vue +++ b/src/page/Home/Home.vue @@ -238,8 +238,7 @@ const getCode2 = () => { const wxAuthGetCode = () => { var appId = "wx35766a64d73d08a9"; var REDIRECT_URI = window.location.href; - window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=appId&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect -`; + 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'; // service // .post(process.env.VUE_APP_API + "/cms-activity/cms88/zsApi/xfhdAuthorize", {