mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-16 03:55:06 +08:00
增加三方登陆相关的表结构
This commit is contained in:
@ -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) => {
|
||||
|
@ -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", {
|
||||
|
Reference in New Issue
Block a user