fix: logout error

This commit is contained in:
jialin
2025-12-12 17:26:06 +08:00
parent a68e3ff9da
commit b327eedb45
+1 -1
View File
@@ -29,7 +29,7 @@ export const logout = async (userInfo?: any) => {
});
clearStorageUserSettings();
clearAtomStorage(userAtom);
if (res.logout_url) {
if (res?.logout_url) {
window.location.href = res.logout_url;
}
return;