fix: 优化打印以及评判一个弹窗问题
This commit is contained in:
		
							parent
							
								
									af8b11250b
								
							
						
					
					
						commit
						7bd3689593
					
				| @ -59,8 +59,6 @@ import { InitMapPoint, InitMapPointItem } from './Judge/TableUtils'; | ||||
| @Entry | ||||
| @Component | ||||
| struct JudgePage { | ||||
|   scroller: Scroller = new Scroller() | ||||
|   //页面通用字体大小 | ||||
|   @State wayno: number = 0 | ||||
|   @State isDdxk: boolean = false; | ||||
|   //开始时间 | ||||
| @ -197,6 +195,7 @@ struct JudgePage { | ||||
|   }) | ||||
| 
 | ||||
|   async aboutToDisappear() { | ||||
|     this.generateExamRecordsDialogController.close() | ||||
|     clearInterval(this.mileageTimer) | ||||
|   } | ||||
| 
 | ||||
|  | ||||
| @ -91,8 +91,9 @@ class logWorker { | ||||
|   // 处理长消息分割和记录 | ||||
|   private logLongMessage(level: 'log' | 'info' | 'error', message: string): void { | ||||
|     const chunks = this.splitLongMessage(message); | ||||
|     const chunkId = Math.random().toString(36).substring(2, 8); // 生成简短随机ID | ||||
|     chunks.forEach((chunk, index) => { | ||||
|       this.logConsole(level, `${LOG_CHUNK_PREFIX} ${index + 1}/${chunks.length}] ${chunk}`); | ||||
|       this.logConsole(level, `${LOG_CHUNK_PREFIX}  ${index + 1}/${chunks.length} [${chunkId}]] ${chunk}`); | ||||
|     }); | ||||
|   } | ||||
| 
 | ||||
|  | ||||
| @ -117,7 +117,7 @@ export default class TcpClient { | ||||
|     return this.tcp?.send({ | ||||
|       data | ||||
|     }).catch(async (err: BusinessError) => { | ||||
|       console.log(TCPTag, 'sendMsg error:', JSON.stringify(err)) | ||||
|       console.log(TCPTag, 'sendMsg error:', JSON.stringify(err), this.oppositeIp, this.oppositeIpPort) | ||||
|       this.tcpSendNum++ | ||||
|       if (this.tcpSendNum > 10) { | ||||
|         this.tcpSendNum = 0 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user