|
@ -293,8 +293,8 @@ export default { |
|
|
// 计算 redirectUri |
|
|
// 计算 redirectUri |
|
|
const redirectUri = location.origin + '/social-login?' |
|
|
const redirectUri = location.origin + '/social-login?' |
|
|
+ encodeURIComponent('type=' + socialTypeEnum.type + '&redirect=' + (this.redirect || "/")); // 重定向不能丢 |
|
|
+ encodeURIComponent('type=' + socialTypeEnum.type + '&redirect=' + (this.redirect || "/")); // 重定向不能丢 |
|
|
// const redirectUri = 'http://127.0.0.1:48080/api/gitee/callback'; |
|
|
// const redirectUri = 'http://127.0.0.1:12080/api/gitee/callback'; |
|
|
// const redirectUri = 'http://127.0.0.1:48080/api/dingtalk/callback'; |
|
|
// const redirectUri = 'http://127.0.0.1:4801208080/api/dingtalk/callback'; |
|
|
// 进行跳转 |
|
|
// 进行跳转 |
|
|
socialAuthRedirect(socialTypeEnum.type, encodeURIComponent(redirectUri)).then((res) => { |
|
|
socialAuthRedirect(socialTypeEnum.type, encodeURIComponent(redirectUri)).then((res) => { |
|
|
// console.log(res.url); |
|
|
// console.log(res.url); |
|
|