fix: 优化打印以及评判一个弹窗问题

This commit is contained in:
wangzhongjie 2025-07-04 13:49:43 +08:00
parent af8b11250b
commit 7bd3689593
3 changed files with 4 additions and 4 deletions

View File

@ -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)
}

View File

@ -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}`);
});
}

View File

@ -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