From 8515daf1bc0bfde576982f14a82aecd30e6b96ef Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 16 Apr 2022 13:11:10 +0800 Subject: [PATCH] setBarTitles use Sys_Brand_Name in envar-user-config.js in addition to appInfo in pages.json --- usertool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usertool.js b/usertool.js index f58c3f4..94894da 100644 --- a/usertool.js +++ b/usertool.js @@ -64,7 +64,7 @@ export default { const pageNow = getCurrentPages()[getCurrentPages().length - 1] // #ifdef H5 - document.title = windowTitle || pagesJson?.appInfo?.i18nText?.[mylang] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。 + document.title = windowTitle || wo?.envar?.Sys_Brand_Name?.[mylang] || pagesJson?.appInfo?.i18nText?.[mylang] || pagesJson?.globalStyle?.navigationBarTitleText // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。 // #endif uni.setNavigationBarTitle({