perf(frontend): eliminate navigation loading states

This commit is contained in:
Tunglies
2026-07-20 02:43:38 +08:00
parent 971dd37965
commit e63b8e6eb0
6 changed files with 54 additions and 216 deletions
+4 -1
View File
@@ -89,6 +89,9 @@ const STARTUP_LANGUAGE_SECTIONS = [
'profiles',
'proxies',
'tests',
'rules',
'connections',
'logs',
] as const
const localeModules = import.meta.glob<LocaleModule>('@/locales/*/*.json')
@@ -174,7 +177,7 @@ export const changeLanguage = async (language: string) => {
)
await ensureLanguageSections(
loadedSections.length ? loadedSections : STARTUP_LANGUAGE_SECTIONS,
[...new Set([...loadedSections, ...STARTUP_LANGUAGE_SECTIONS])],
targetLanguage,
)