From 8b76ff07f0526bfeb5d6d005b3f2cb287d5ce899 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 15 Nov 2024 10:50:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E5=B5=8C?= =?UTF-8?q?=E5=85=A5=E5=BC=8F=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/pages/panel/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index f450ea81ee..02e1602655 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -63,7 +63,6 @@ import { setupStore } from '@/store' import { useEmbedded } from '@/store/modules/embedded' import { setupElementPlus, setupElementPlusIcons } from '@/plugins/element-plus' import { setupRouter } from '@/router/embedded' -import { getDefaultSettings } from '@/api/common' import { useCache } from '@/hooks/web/useCache' const setupAll = async ( @@ -118,7 +117,8 @@ const setupAll = async ( const appearanceRes = await import('@/store/modules/appearance') const appearanceStore = appearanceRes.useAppearanceStoreWithOut() appearanceStore.setAppearance(true) - const defaultSort = await getDefaultSettings() + const getDefaultSort = await import('@/api/common') + const defaultSort = await getDefaultSort.getDefaultSettings() const { wsCache } = useCache() wsCache.set('TreeSort-backend', defaultSort['basic.defaultSort'] ?? '1') app.mount(dom)