纠正小错
This commit is contained in:
		
							parent
							
								
									a750520d19
								
							
						
					
					
						commit
						da20decd80
					
				
							
								
								
									
										2
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								index.js
									
									
									
									
									
								
							@ -97,7 +97,7 @@ module.exports = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  setBarTitles({windowTitle, pageTitle}={}){
 | 
					  setBarTitles({windowTitle, pageTitle}={}){
 | 
				
			||||||
    let page = this.$store ? this : getCurrentPages().pop()
 | 
					    let page = this.$store ? this : getCurrentPages().pop()
 | 
				
			||||||
    uni.setNavigationBarTitle({ title: pageTitle || page.localeText.tPageTitle || page.i18nText[page.$store.i18n.activeLang].tPageTitle })
 | 
					    uni.setNavigationBarTitle({ title: pageTitle || page.localeText.tPageTitle || page.i18nText[page.$store.state.i18n.activeLang].tPageTitle })
 | 
				
			||||||
    // #ifdef H5
 | 
					    // #ifdef H5
 | 
				
			||||||
    document.title = windowTitle || page.appName || page.$store.getters['i18n/getAppName'] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。
 | 
					    document.title = windowTitle || page.appName || page.$store.getters['i18n/getAppName'] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。
 | 
				
			||||||
    // #endif
 | 
					    // #endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user