张延森 3 years ago
parent
commit
5f06aaf9a5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/utils/initial.js

+ 1
- 1
src/utils/initial.js View File

125
   if (force || wxfirst || !queryCode || queryCode === originCode) {
125
   if (force || wxfirst || !queryCode || queryCode === originCode) {
126
 
126
 
127
     const local = encodeURIComponent(location.origin + location.pathname)
127
     const local = encodeURIComponent(location.origin + location.pathname)
128
-    const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd3bab568bc42d1de&redirect_uri=${local}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect`
128
+    const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd3bab568bc42d1de&redirect_uri=${local}&response_type=code&scope=snsapi_base&state=123#wechat_redirect`
129
     window.location.href = url;
129
     window.location.href = url;
130
   }
130
   }
131
 }
131
 }