添加gitea第三方登录,绑定成功添加提示信息
This commit is contained in:
parent
2f961f285c
commit
b4a71388d2
|
|
@ -59,12 +59,9 @@
|
|||
<!-- thirdPartyLogoInfoList -->
|
||||
<template v-for="(item, index) in thirdPartyLogoInfoList" :key="index">
|
||||
<el-col :span="8">
|
||||
<img :src="item.logo" alt="" @click="thirdLogin(item.name)" />
|
||||
<!-- <el-button
|
||||
class="github-btn"
|
||||
@click="thirdLogin(item.name)"
|
||||
circle
|
||||
></el-button> -->
|
||||
<el-tooltip :content="item.label" placement="top">
|
||||
<img :src="item.logo" alt="" @click="thirdLogin(item.name)" />
|
||||
</el-tooltip>
|
||||
</el-col>
|
||||
</template>
|
||||
|
||||
|
|
@ -127,26 +124,42 @@ const thirdPartyLogoInfoList = ref([
|
|||
{
|
||||
name: "github",
|
||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/github-48-logo.png",
|
||||
label: "GitHub",
|
||||
},
|
||||
{
|
||||
name: "gitee",
|
||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/04/gitee.png",
|
||||
label: "Gitee",
|
||||
},
|
||||
{
|
||||
name: "qq",
|
||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/icons8-qq-48.png",
|
||||
label: "QQ",
|
||||
},
|
||||
{
|
||||
name: "google",
|
||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/icons8-google-48.png",
|
||||
label: "Google",
|
||||
},
|
||||
{
|
||||
name: "facebook",
|
||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/icons8-facebook.png",
|
||||
label: "Facebook",
|
||||
},
|
||||
{
|
||||
name: "stackoverflow",
|
||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/logo-stackoverflow-48.png",
|
||||
label: "StackOverflow",
|
||||
},
|
||||
{
|
||||
name: "my_gitea",
|
||||
logo: "https://www.ljsea.top/wp-content/uploads/2025/05/my_Gitea.png",
|
||||
label: "Gitea自建",
|
||||
},
|
||||
{
|
||||
name: 'gitea',
|
||||
logo: 'https://www.ljsea.top/wp-content/uploads/2025/05/PajamasGitea.png',
|
||||
label: 'Gitea官方',
|
||||
}
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -170,6 +170,8 @@ const thirdPartyPlatform = ref([
|
|||
{ label: 'Google', value: 'google' },
|
||||
{ label: 'Facebook', value: 'facebook'},
|
||||
{ label: 'StackOverflow', value: 'stackoverflow' },
|
||||
{ label: "Gitea官方", value: "gitea"},
|
||||
{ label: "Gitea自建", value: "my_gitea"}
|
||||
]);
|
||||
|
||||
|
||||
|
|
@ -454,6 +456,7 @@ const thirdLogin = async (type) => {
|
|||
localStorage.setItem("username", status["username"]);
|
||||
let now = new Date();
|
||||
localStorage.setItem("end_time", (now.setDate(now.getHours() + 12)).toString()); //过期时间
|
||||
ElMessage.success("绑定成功!");
|
||||
getThirdPartyUserInfo();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue