mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-24 04:32:07 +08:00
perf(frontend): eliminate navigation loading states
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user