Skip to content

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

Should move setting/fetchSetting after login otherwise would report missing access token error

天舟fb9c792d3ed8
diff --git a/frontend/src/components/ProvideDashboardContext.vue b/frontend/src/components/ProvideDashboardContext.vue
index 68fb6b45b5..833e2a516c 100644
--- a/frontend/src/components/ProvideDashboardContext.vue
+++ b/frontend/src/components/ProvideDashboardContext.vue
@@ -18,6 +18,7 @@ export default {
);
await Promise.all([
+ store.dispatch("setting/fetchSetting"),
// Fetch so MemberSelect can have the data.
store.dispatch("member/fetchMemberList"),
// Though fetchMemberList also return the principal info, it's possible that a principal is no longer a member.
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index b98c080cbd..24bf8b3704 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -128,7 +128,6 @@ axios.interceptors.response.use(
// We use finally because we always want to mount the app regardless of the error.
Promise.all([
store.dispatch("actuator/fetchInfo"),
- store.dispatch("setting/fetchSetting"),
store.dispatch("plan/fetchCurrentPlan"),
store.dispatch("auth/restoreUser"),
]).finally(() => {