From 43117649f518b7ca653a10270dc0d189b2ea35fd Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sat, 10 Sep 2022 20:31:56 +0800 Subject: [PATCH] u --- unitool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitool.js b/unitool.js index 03625d2..b8f7900 100644 --- a/unitool.js +++ b/unitool.js @@ -86,7 +86,7 @@ export default { pagesJson?.pages?.find((page) => page.path === pageNow?.route)?.i18nPageTitle?.[mylang] || // pages.json 的页面配置里 '' - if (uni.getSystemInfoSync().model === 'PC') { + if (uni.getSystemInfoSync().deviceType === 'pc') { windowTitle = windowTitle || wo?.envar?.callname?.[mylang] || pagesJson?.appInfo?.i18nText?.[mylang] || pagesJson?.globalStyle?.navigationBarTitleText || '' uni.setNavigationBarTitle({ title: windowTitle + (navibarTitle ? ` - ${navibarTitle}` : '') })