feat: 修复四合一画面偶现显示不对的问题
This commit is contained in:
		
							parent
							
								
									f5c701dcda
								
							
						
					
					
						commit
						1f5d1eb221
					
				| @ -119,12 +119,16 @@ export async function getCurrentHourTime():Promise<string> { | ||||
|   //@ts-ignore
 | ||||
|   s = s < 10 ? '0' + s : s; | ||||
|   let ss = date.getMilliseconds(); | ||||
|   let nowSS = '' | ||||
|   if(ss < 10){ | ||||
|     //@ts-ignore
 | ||||
|   ss = ss < 10 ? '00' + ss : ss; | ||||
|     nowSS = '00' + ss | ||||
|   } | ||||
|   if(ss >= 10 && ss < 100){ | ||||
|     //@ts-ignore
 | ||||
|   ss = ss < 100 ? '0' + ss : ss; | ||||
| 
 | ||||
|   return `${h}${m}${s}${ss}` | ||||
|     nowSS = '0' + s | ||||
|   } | ||||
|   return `${h}${m}${s}${nowSS||ss}` | ||||
| } | ||||
| 
 | ||||
| //时间戳转日期
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user