fix: sync third-party binding state in personal settings

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

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);
}