From dfba990892b7a295f327c391314a258c6271144e Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Sat, 28 Dec 2024 19:10:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=9B=BD=E9=99=85=E5=8C=96=E5=8A=A0=E8=BD=BD=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/plugins/vue-i18n/index.ts | 5 ++++- de-xpack | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/plugins/vue-i18n/index.ts b/core/core-frontend/src/plugins/vue-i18n/index.ts index bbc7d8475f..edd4d6370a 100644 --- a/core/core-frontend/src/plugins/vue-i18n/index.ts +++ b/core/core-frontend/src/plugins/vue-i18n/index.ts @@ -50,7 +50,10 @@ const createI18nOptions = async (): Promise => { const loadRemoteI18n = async (option: any) => { const name = option.lang.replace('-', '_') - const path = PATH_URL.startsWith('./') && PATH_URL.length > 2 ? PATH_URL.substring(1) : PATH_URL + const path = + PATH_URL.startsWith('./') && PATH_URL.length > 2 + ? window.location.pathname + PATH_URL.substring(2) + : PATH_URL const url = `${path}/i18n/custom_${name}_front_${option.name}.js` return await import(url) } diff --git a/de-xpack b/de-xpack index af394f2d3a..feab899f0f 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit af394f2d3a12de818c7a97c0f9c7989cd14fcabc +Subproject commit feab899f0f951256b53eeff612d18427be358bed