From 39be6a3439a786a8002599124f7153ef55c6061f Mon Sep 17 00:00:00 2001 From: yige Date: Wed, 22 Jul 2020 23:54:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/auth.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/auth.vue b/pages/auth.vue index a242459..772be79 100644 --- a/pages/auth.vue +++ b/pages/auth.vue @@ -12,9 +12,14 @@ export default { }, async mounted () { const code = this.$route.query.code + const type = this.$route.query.type if (!code) { this.notice = '

非法访问,缺少授权参数"code"。



返回首页'; this.$finishLoad(); return } + if (type === 'weixin') { + + } + const { data } = await this.$axios.post('/visitor/user/auth', { type: 'github', code