第一步,获取后台给的跳转链接
获取链接
getAuth () {
this.$http.post(this.$api.wxGongAccount, this.$qs.stringify({
access_token: this.token
})).then(res => {
this.toGonglink = res.data.data;
});
}
第二步,新建一个跟后台写好的页面路径的页面
这个是授权成功后跳转的页面,我是新建一个页面 /wechat。
wechatAccount: baseU