chore: update global state

This commit is contained in:
Steven 2023-07-02 23:23:25 +08:00
parent 874514322b
commit 2639419be3

View File

@ -10,14 +10,14 @@ const globalService = {
initialState: async () => {
try {
await userService.initialState();
const workspaceProfile = (await api.getWorkspaceProfile()).data;
store.dispatch(setGlobalState({ workspaceProfile }));
} catch (error) {
// do nth
}
try {
const workspaceProfile = (await api.getWorkspaceProfile()).data;
store.dispatch(setGlobalState({ workspaceProfile }));
await userService.initialState();
} catch (error) {
// do nth
}