feat: disable get workspaces cache

This commit is contained in:
MingLiang Wang
2022-12-24 12:42:48 +08:00
parent 0d4e597be5
commit 00723f2308
+7 -1
View File
@@ -26,7 +26,13 @@ export interface Workspace {
}
export async function getWorkspaces(): Promise<Workspace[]> {
return client.get('/api/workspace').json();
return client
.get('/api/workspace', {
headers: {
'Cache-Control': 'no-cache',
},
})
.json();
}
export interface WorkspaceDetail extends Workspace {