接入第三方登录(已接入Gitee[理论justAuth支持都可以接入]--抢先预览版

This commit is contained in:
weir
2021-08-13 23:44:52 +08:00
parent c588a4d975
commit 133cb49c42
27 changed files with 1049 additions and 44 deletions

View File

@ -38,3 +38,19 @@ export function getCodeImg() {
method: 'get'
})
}
// 接入第三方登录
export function giteeLogin() {
return request({
url: '/auth2/authorization/gitee',
method: 'get'
})
}
export function getToken(path) {
console.log({path});
return request({
url: '/auth2/login/gitee' + path,
method: 'get'
})
}