perf: 支持OIDC单点登录

This commit is contained in:
xiaojunnuo
2025-12-01 00:40:46 +08:00
parent 22a5f34e1f
commit fbf12f16b5
18 changed files with 371 additions and 153 deletions
@@ -53,8 +53,13 @@ async function handleOauthToken() {
}
if (res.bindRequired) {
//需要绑定
bindRequired.value = true;
bindCode.value = res.validationCode;
//如果开启了自动注册,默认自动注册账号
if (settingStore.sysPublic.registerEnabled) {
autoRegister();
} else {
bindRequired.value = true;
}
}
}
@@ -64,7 +69,7 @@ onMounted(async () => {
}
if (forType === "bind") {
//绑定第三方账号
//从用户中心页面,进行第三方账号的绑定
await api.BindUser(validationCode);
notification.success({
message: "绑定成功",