添加微信登录

This commit is contained in:
yi-ge 2020-07-22 23:54:22 +08:00
parent 0b02bf7838
commit 39be6a3439

View File

@ -12,9 +12,14 @@ export default {
},
async mounted () {
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 (type === 'weixin') {
}
const { data } = await this.$axios.post('/visitor/user/auth', {
type: 'github',
code