forgot to assign pagesJson
This commit is contained in:
parent
4268f629ed
commit
d2522000eb
1
index.js
1
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 之后,否则会被其覆盖掉。
|
||||
|
Loading…
Reference in New Issue
Block a user