From 5089c1049363ec51cacd918cd2227dcdc735aa5e Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 4 Sep 2020 09:48:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=AC=A1=E6=8A=8A=20setBarTitles=20?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E5=88=B0=20i18n.js=20=E5=90=8E=E6=B0=B4?= =?UTF-8?q?=E5=9C=9F=E4=B8=8D=E6=9C=8D=EF=BC=8C=E5=9C=A8=20app=20=E9=87=8C?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AF=BB=E5=8F=96=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=89=80=E4=BB=A5?= =?UTF-8?q?=E6=94=B9=E6=88=90=E9=83=BD=E6=98=BE=E6=80=A7=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=20pageTitle=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unitool/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitool/index.js b/unitool/index.js index 0e62755..8e07b5b 100644 --- a/unitool/index.js +++ b/unitool/index.js @@ -219,7 +219,7 @@ module.exports = { let page = this.$store ? this : getCurrentPages().pop() uni.setNavigationBarTitle({ title: pageTitle || page.i18nText[page.$store.state.i18n.mylang].tPageTitle }) // #ifdef H5 - document.title = windowTitle || page.$store.getters['i18n/getAppName'] || page.appName // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。 + document.title = windowTitle || page.$store.getters['i18n/getAppName'] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。 // #endif if (page.$store._mutations['i18n/setTabbar']) page.$store.commit('i18n/setTabbar') // 必须要在有 tab 的页面里重置才有效果 },