fix: store hideModel value in global session

This commit is contained in:
jialin
2025-12-25 20:36:48 +08:00
parent 725409a576
commit 1b4d335b09
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -1,3 +1,4 @@
import { hideModalTemporarilyAtom } from '@/atoms/settings';
import { userAtom } from '@/atoms/user';
import { clearAtomStorage, clearStorageUserSettings } from '@/atoms/utils';
import { request } from '@umijs/max';
@@ -29,6 +30,7 @@ export const logout = async (userInfo?: any) => {
});
clearStorageUserSettings();
clearAtomStorage(userAtom);
clearAtomStorage(hideModalTemporarilyAtom);
if (res?.logout_url) {
window.location.href = res.logout_url;