diff --git a/index.js b/index.js index 6694602..62e1bb2 100644 --- a/index.js +++ b/index.js @@ -54,6 +54,7 @@ export default { setBarTitles ({ windowTitle, pageTitle } = {}) { const pageNow = getCurrentPages()[getCurrentPages().length - 1] const mylang = getApp().$store.state.i18n.mylang + const pagesJson = getApp().$pagesJson // #ifdef H5 document.title = windowTitle || pagesJson?.appInfo?.i18nText?.[mylang] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。