From c31196ab7673e854e12c2353c05697931305be06 Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Tue, 11 Apr 2023 15:21:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmenu=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/runtime/helpers/pluginLocale.js | 2 +- packages/fes-plugin-layout/src/runtime/views/Menu.vue | 10 +++++----- packages/fes-plugin-locale/src/runtime/core.tpl | 10 +++++----- packages/fes-plugin-locale/src/runtime/runtime.js | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/fes-plugin-layout/src/runtime/helpers/pluginLocale.js b/packages/fes-plugin-layout/src/runtime/helpers/pluginLocale.js index fc2a6693..0691f188 100644 --- a/packages/fes-plugin-layout/src/runtime/helpers/pluginLocale.js +++ b/packages/fes-plugin-layout/src/runtime/helpers/pluginLocale.js @@ -6,7 +6,7 @@ export const transTitle = (name) => { } const sharedLocale = plugin.getShared('locale'); if (sharedLocale) { - const { t } = sharedLocale.useI18n(); + const { t } = sharedLocale.locale; return t(name.slice(1)); } return name; diff --git a/packages/fes-plugin-layout/src/runtime/views/Menu.vue b/packages/fes-plugin-layout/src/runtime/views/Menu.vue index e23e7479..0e4ba224 100644 --- a/packages/fes-plugin-layout/src/runtime/views/Menu.vue +++ b/packages/fes-plugin-layout/src/runtime/views/Menu.vue @@ -1,7 +1,7 @@