增加三方登陆相关的表结构

This commit is contained in:
YunaiV
2021-10-03 00:35:57 +08:00
parent 9be00d6035
commit 7b3a283074
9 changed files with 226 additions and 1007 deletions

View File

@ -71,6 +71,11 @@ export default {
title: "钉钉",
source: "dingtalk",
type: 20
} , {
img: "https://cdn.jsdelivr.net/gh/justauth/justauth-oauth-logo@1.2/wechat_enterprise.png",
title: "企业微信",
source: "wechat_enterprise",
type: 30
}
],
loginRules: {
@ -143,8 +148,8 @@ export default {
// 设置登陆中
this.loading = true;
// 计算 redirectUri
const redirectUri = location.origin + '/social-login';
// const redirectUri = 'http://127.0.0.1:48080/api/gitee/callback';
// const redirectUri = location.origin + '/social-login';
const redirectUri = 'http://127.0.0.1:48080/api/gitee/callback';
// const redirectUri = 'http://127.0.0.1:48080/api/dingtalk/callback';
// 进行跳转
socialLoginRedirect(provider.type, redirectUri).then((res) => {

View File

@ -68,7 +68,7 @@ export default {
created() {
this.getCookie();
// 三方登陆相关
this.type = 20;
this.type = 10; // TODO 芋艿:需要改
this.code = this.$route.query.code;
this.state = this.$route.query.state;
this.$store.dispatch("SocialLogin", {