Commit 7bb1c2f0ed1b357b23ade816772ba1f52a5e95cf
1 parent
a5f8a3c0
授权方式修改
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/plateNumber.vue
| ... | ... | @@ -333,7 +333,7 @@ export default { |
| 333 | 333 | var code = this.getUrlParam('code'); |
| 334 | 334 | var local = window.location.href; |
| 335 | 335 | if (code == null || code === '') { |
| 336 | - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appID+'&redirect_uri='+encodeURIComponent(local)+'&response_type=code&scope=snsapi_userinfo&state=1,0#wechat_redirect' | |
| 336 | + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appID+'&redirect_uri='+encodeURIComponent(local)+'&response_type=code&scope=snsapi_base&state=1,0#wechat_redirect' | |
| 337 | 337 | } else { |
| 338 | 338 | return code; |
| 339 | 339 | } | ... | ... |