添加stackoverflow登录,修改第三方登录图标
This commit is contained in:
parent
dd8f9f1603
commit
bc0c367884
File diff suppressed because one or more lines are too long
|
|
@ -126,7 +126,7 @@ const currentLoginRequest = ref(0); //当前请求次数
|
||||||
const thirdPartyLogoInfoList = ref([
|
const thirdPartyLogoInfoList = ref([
|
||||||
{
|
{
|
||||||
name: "github",
|
name: "github",
|
||||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/04/github-logo.png",
|
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/github-48-logo.png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "gitee",
|
name: "gitee",
|
||||||
|
|
@ -134,15 +134,19 @@ const thirdPartyLogoInfoList = ref([
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "qq",
|
name: "qq",
|
||||||
logo: "https://wiki.connect.qq.com/wp-content/uploads/2016/12/Connect_logo_7.png",
|
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/icons8-qq-48.png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "google",
|
name: "google",
|
||||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/04/google-logo_resized.png",
|
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/icons8-google-48.png",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "facebook",
|
name: "facebook",
|
||||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/icons8-facebook.png",
|
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/icons8-facebook.png",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "stackoverflow",
|
||||||
|
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/logo-stackoverflow-48.png",
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
@ -206,6 +210,11 @@ const thirdLogin = async (type) => {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(statusResp["code"] === 9){
|
||||||
|
ElMessage.error("服务器错误,请稍后再试!");
|
||||||
|
clearInterval(timer);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(statusResp["data"]["status"] === 163) {
|
if(statusResp["data"]["status"] === 163) {
|
||||||
ElMessage.error("该账号未绑定,请先绑定账号!");
|
ElMessage.error("该账号未绑定,请先绑定账号!");
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,8 @@ const thirdPartyPlatform = ref([
|
||||||
{ label: 'Github', value: 'github' },
|
{ label: 'Github', value: 'github' },
|
||||||
{ label: 'Gitee', value: 'gitee' },
|
{ label: 'Gitee', value: 'gitee' },
|
||||||
{ label: 'Google', value: 'google' },
|
{ label: 'Google', value: 'google' },
|
||||||
{ label: 'Facebook', value: 'facebook'}
|
{ label: 'Facebook', value: 'facebook'},
|
||||||
|
{ label: 'StackOverflow', value: 'stackoverflow' },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -426,6 +427,11 @@ const thirdLogin = async (type) => {
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(statusResp["code"] === 9){
|
||||||
|
ElMessage.error("服务器错误,请稍后再试!");
|
||||||
|
clearInterval(timer);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(statusResp["data"]["status"] === 163) {
|
if(statusResp["data"]["status"] === 163) {
|
||||||
ElMessage.error("该账号未绑定,请先绑定账号!");
|
ElMessage.error("该账号未绑定,请先绑定账号!");
|
||||||
clearInterval(timer);
|
clearInterval(timer);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue