fix: sync third-party binding state in personal settings

This commit is contained in:
RedwindA
2025-09-29 19:23:42 +08:00
parent 9f989fc7ef
commit 1b627ddb5e
2 changed files with 6 additions and 0 deletions

View File

@@ -450,6 +450,10 @@ func GetSelf(c *gin.Context) {
"role": user.Role,
"status": user.Status,
"email": user.Email,
"github_id": user.GitHubId,
"oidc_id": user.OidcId,
"wechat_id": user.WeChatId,
"telegram_id": user.TelegramId,
"group": user.Group,
"quota": user.Quota,
"used_quota": user.UsedQuota,

View File

@@ -26,6 +26,7 @@ import {
showInfo,
showSuccess,
setStatusData,
setUserData,
} from '../../helpers';
import { UserContext } from '../../context/User';
import { Modal } from '@douyinfe/semi-ui';
@@ -165,6 +166,7 @@ const PersonalSetting = () => {
const { success, message, data } = res.data;
if (success) {
userDispatch({ type: 'login', payload: data });
setUserData(data);
} else {
showError(message);
}