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 @@