fix: sync third-party binding state in personal settings
This commit is contained in:
1 parent
41ea93883b
commit
9e271b0680
2 files changed
+6
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user