forgot to assign pagesJson

This commit is contained in:
陆柯 2022-02-16 15:59:22 +08:00
parent 4268f629ed
commit d2522000eb

View File

@ -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 之后,否则会被其覆盖掉。