diff --git a/packages/nc-gui/components/smartsheet/sidebar/MenuTop.vue b/packages/nc-gui/components/smartsheet/sidebar/MenuTop.vue index a537d0774c..58d4e94a54 100644 --- a/packages/nc-gui/components/smartsheet/sidebar/MenuTop.vue +++ b/packages/nc-gui/components/smartsheet/sidebar/MenuTop.vue @@ -17,7 +17,6 @@ import { useDialog, useI18n, useNuxtApp, - useRoute, useRouter, viewTypeAlias, watch, diff --git a/packages/nc-gui/composables/useProject.ts b/packages/nc-gui/composables/useProject.ts index 98b47567be..64c301656e 100644 --- a/packages/nc-gui/composables/useProject.ts +++ b/packages/nc-gui/composables/useProject.ts @@ -79,7 +79,7 @@ const [setup, use] = useInjectionState(() => { } } - async function loadProject() { + async function loadProject(withTheme = true) { if (projectType === 'base') { try { const baseData = await api.public.sharedBaseGet(route.params.projectId as string) @@ -102,7 +102,7 @@ const [setup, use] = useInjectionState(() => { await loadTables() - setTheme(projectMeta.value?.theme) + if (withTheme) setTheme(projectMeta.value?.theme) return projectLoadedHook.trigger(project.value) } diff --git a/packages/nc-gui/layouts/base.vue b/packages/nc-gui/layouts/base.vue index 2fe797b30d..90104d00e4 100644 --- a/packages/nc-gui/layouts/base.vue +++ b/packages/nc-gui/layouts/base.vue @@ -44,6 +44,7 @@ hooks.hook('page:finish', () => {
@@ -77,11 +78,15 @@ hooks.hook('page:finish', () => {