优化代码

This commit is contained in:
limengnan 2025-03-14 14:11:40 +08:00
parent 986bc38a9c
commit 4f29bccf10

View File

@ -55,7 +55,7 @@ const loadRemoteI18n = async (option: any) => {
? window.location.pathname + PATH_URL.substring(2) ? window.location.pathname + PATH_URL.substring(2)
: PATH_URL : PATH_URL
const url = `${path}/i18n/custom_${name}_front_${option.name}.js` const url = `${path}/i18n/custom_${name}_front_${option.name}.js`
return await import(url) return await import(/* @vite-ignore */ url)
} }
export const setupI18n = async (app: App<Element>) => { export const setupI18n = async (app: App<Element>) => {