|
@@ -7,7 +7,7 @@ import config from "@/config"
|
|
|
export default {
|
|
|
name:'login',
|
|
|
async mounted () {
|
|
|
- const redirect = encodeURIComponent(config.redirect)
|
|
|
+ const redirect = encodeURIComponent('http://cxinv.api.caixiao365.com/')
|
|
|
var state = 'wx_' + Math.random().toString(36).substr(2, 15)
|
|
|
const scope = 'snsapi_userinfo'
|
|
|
const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.appId}&redirect_uri=${redirect}&response_type=code&scope=${scope}&state=${state}#wechat_redirect`
|