添加微信登录
This commit is contained in:
parent
0b02bf7838
commit
39be6a3439
@ -12,9 +12,14 @@ export default {
|
|||||||
},
|
},
|
||||||
async mounted () {
|
async mounted () {
|
||||||
const code = this.$route.query.code
|
const code = this.$route.query.code
|
||||||
|
const type = this.$route.query.type
|
||||||
|
|
||||||
if (!code) { this.notice = '<p style="color: #999">非法访问,缺少授权参数"code"。<p><br><br> <a href="https://www.wyr.me" target="_blank">返回首页<a>'; this.$finishLoad(); return }
|
if (!code) { this.notice = '<p style="color: #999">非法访问,缺少授权参数"code"。<p><br><br> <a href="https://www.wyr.me" target="_blank">返回首页<a>'; this.$finishLoad(); return }
|
||||||
|
|
||||||
|
if (type === 'weixin') {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const { data } = await this.$axios.post('/visitor/user/auth', {
|
const { data } = await this.$axios.post('/visitor/user/auth', {
|
||||||
type: 'github',
|
type: 'github',
|
||||||
code
|
code
|
||||||
|
Loading…
Reference in New Issue
Block a user