fix: logout will set status about workspace (#830)

This commit is contained in:
DiamondThree
2023-02-07 14:40:06 +08:00
committed by GitHub
parent d7cb1b5c0a
commit a6100a6ae2

View File

@@ -141,6 +141,7 @@ export const AppStateProvider = ({
}
setAppState({
...appState,
workspaceList: dataCenter.workspaces,
user,
});
return user;
@@ -151,6 +152,7 @@ export const AppStateProvider = ({
await dataCenter.logout();
setAppState({
...appState,
workspaceList: dataCenter.workspaces,
user: null,
});
};