Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Group remote fetch together in ProvideDashboardContext

天舟09c85b8972e7
diff --git a/frontend/src/components/ProvideDashboardContext.vue b/frontend/src/components/ProvideDashboardContext.vue
index 48004bb2e1..1a54c56046 100644
--- a/frontend/src/components/ProvideDashboardContext.vue
+++ b/frontend/src/components/ProvideDashboardContext.vue
@@ -17,23 +17,18 @@ export default {
store.getters["auth/currentUser"]()
);
- await store.dispatch("plan/fetchCurrentPlan");
-
- await store.dispatch("actuator/info");
-
- // Fetch member and principal list so PrincipalSelect can have the data.
- await store.dispatch("member/fetchMemberList");
- await store.dispatch("principal/fetchPrincipalList");
-
- await store.dispatch("environment/fetchEnvironmentList");
-
await Promise.all([
+ store.dispatch("plan/fetchCurrentPlan"),
+ store.dispatch("actuator/info"),
+ // Fetch member and principal list so PrincipalSelect can have the data.
+ store.dispatch("member/fetchMemberList"),
+ store.dispatch("principal/fetchPrincipalList"),
+ store.dispatch("environment/fetchEnvironmentList"),
// The default project hosts databases not explicitly assigned to other users project.
store.dispatch("project/fetchProjectById", DEFAULT_PROJECT_ID),
+ store.dispatch("message/fetchMessageListByUser", currentUser.value.id),
store.dispatch("uistate/restoreState"),
]);
-
- store.dispatch("message/fetchMessageListByUser", currentUser.value.id);
},
};
</script>