setBarTitles use Sys_Brand_Name in envar-user-config.js in addition to appInfo in pages.json
This commit is contained in:
		
							parent
							
								
									f100690202
								
							
						
					
					
						commit
						8515daf1bc
					
				@ -64,7 +64,7 @@ export default {
 | 
				
			|||||||
    const pageNow = getCurrentPages()[getCurrentPages().length - 1]
 | 
					    const pageNow = getCurrentPages()[getCurrentPages().length - 1]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // #ifdef H5
 | 
					    // #ifdef H5
 | 
				
			||||||
    document.title = windowTitle || pagesJson?.appInfo?.i18nText?.[mylang] // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。
 | 
					    document.title = windowTitle || wo?.envar?.Sys_Brand_Name?.[mylang] || pagesJson?.appInfo?.i18nText?.[mylang] || pagesJson?.globalStyle?.navigationBarTitleText // 必须放在 setNavigationBarTitle 之后,否则会被其覆盖掉。
 | 
				
			||||||
    // #endif
 | 
					    // #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    uni.setNavigationBarTitle({
 | 
					    uni.setNavigationBarTitle({
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user