fix: 整理日志、添加颜色、使用统一的日志函数以提高日志可读性

This commit is contained in:
XBB committed 2024-06-04 02:59:35 +08:00
1 parent 42c85224ba
commit ab22b775f1
15 files changed
+96 -68

No files matched your search

+3 -2
View File
@@ -1,5 +1,5 @@
import { sleep } from '@/common/utils/helper';
import { logError } from './log';
type AsyncQueueTask = (() => void) | (()=>Promise<void>);
@@ -26,7 +26,8 @@ export class AsyncQueue {
await taskRet;
}
} catch (e) {
console.error(e);
// console.error(e);
logError(e);
}
this.tasks.shift();
await sleep(100);