Merge pull request #740 from toeverything/fix/logout

fix: fix logout
This commit is contained in:
DarkSky
2023-01-27 03:27:01 +08:00
committed by GitHub
2 changed files with 2 additions and 3 deletions
@@ -407,6 +407,7 @@ export class AffineProvider extends BaseProvider {
token.clear(); token.clear();
this._channel?.disconnect(); this._channel?.disconnect();
this._wsMap.forEach(ws => ws.disconnect()); this._wsMap.forEach(ws => ws.disconnect());
this._workspaces.clear();
storage.removeItem('token'); storage.removeItem('token');
} }
@@ -122,9 +122,7 @@ export class WorkspaceUnitCollection {
}; };
const clear = () => { const clear = () => {
scopedWorkspaceIds.forEach(id => { remove(Array.from(scopedWorkspaceIds));
remove(id);
});
}; };
const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => { const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => {