From f503153277375c7785324b64f7a78f7d0051b826 Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 4 Feb 2024 18:13:13 +0800 Subject: [PATCH] bugfix --- site/src/middleware/fetch.global.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/site/src/middleware/fetch.global.ts b/site/src/middleware/fetch.global.ts index 4e0538204..bfe4c5a87 100644 --- a/site/src/middleware/fetch.global.ts +++ b/site/src/middleware/fetch.global.ts @@ -1,8 +1,8 @@ export default defineNuxtRouteMiddleware(async () => { - const configStore = useConfigStore() - const userStore = useUserStore() - await Promise.all([ - configStore.fetchConfig(), - userStore.fetchCurrent(), - ]) + const configStore = useConfigStore() + const userStore = useUserStore() + await Promise.all([ + configStore.fetchConfig(), + userStore.fetchCurrent(), + ]) })