From 9b072f828aec2c0cc2e0dab9866fef42a0f21b09 Mon Sep 17 00:00:00 2001 From: harrywan Date: Wed, 23 Oct 2024 16:45:11 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20layout=E7=9A=84title=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/plugin/plugins/layout.md | 2 +- .../src/runtime/views/BaseLayout.vue | 26 ++++++++++++------- packages/fes-plugin-locale/src/index.js | 5 ++++ .../fes-plugin-locale/src/runtime/core.js.tpl | 2 +- packages/fes-template/.fes.js | 2 +- 5 files changed, 24 insertions(+), 13 deletions(-) diff --git a/docs/reference/plugin/plugins/layout.md b/docs/reference/plugin/plugins/layout.md index 9da4e372..404539e4 100644 --- a/docs/reference/plugin/plugins/layout.md +++ b/docs/reference/plugin/plugins/layout.md @@ -233,7 +233,7 @@ export function layout(layoutConfig, { initialState }) { - **类型**:`String` - **默认值**:默认为 [编译时配置 title](../../../reference/config/#title) -- **详情**:产品名。 +- **详情**:产品名,当配置为"$"开头时,开启国际化,使用`$`后面的内容去匹配语言设置。 ### logo diff --git a/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue b/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue index 5020986b..ff558f0e 100644 --- a/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue +++ b/packages/fes-plugin-layout/src/runtime/views/BaseLayout.vue @@ -11,8 +11,8 @@ >