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

View File

@@ -407,6 +407,7 @@ export class AffineProvider extends BaseProvider {
token.clear();
this._channel?.disconnect();
this._wsMap.forEach(ws => ws.disconnect());
this._workspaces.clear();
storage.removeItem('token');
}

View File

@@ -122,9 +122,7 @@ export class WorkspaceUnitCollection {
};
const clear = () => {
scopedWorkspaceIds.forEach(id => {
remove(id);
});
remove(Array.from(scopedWorkspaceIds));
};
const update = (workspaceId: string, meta: UpdateWorkspaceUnitParams) => {