[unisocket.js] reconnecting 时发送 _passtoken 给服务器; [index.js] 优化 setBarTitles 使得调用时 call(this 可用也可不用。
This commit is contained in:
7
index.js
7
index.js
@@ -96,11 +96,12 @@ module.exports = {
|
||||
},
|
||||
|
||||
setBarTitles({windowTitle, pageTitle}={}){
|
||||
uni.setNavigationBarTitle({ title: pageTitle || this.localeText.tPageTitle })
|
||||
let page = this.$store ? this : getCurrentPages().pop()
|
||||
uni.setNavigationBarTitle({ title: pageTitle || page.localeText.tPageTitle || page.i18nText[page.$store.i18n.activeLang].tPageTitle })
|
||||
// #ifdef H5
|
||||
document.title = windowTitle || this.appName || this.$store.getters['i18n/getAppName'] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。
|
||||
document.title = windowTitle || page.appName || page.$store.getters['i18n/getAppName'] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。
|
||||
// #endif
|
||||
this.$store.commit('i18n/setTabbar') // 必须要在有 tab 的页面里重置才能成功
|
||||
page.$store.commit('i18n/setTabbar') // 必须要在有 tab 的页面里重置才能成功
|
||||
},
|
||||
|
||||
formatMoney(value, decimal){
|
||||
|
||||
Reference in New Issue
Block a user