refactor: debugLog for frontend (#5587)

This commit is contained in:
Sline
2025-11-25 10:01:04 +08:00
committed by GitHub
parent 64727ad660
commit caca8b2bc4
24 changed files with 181 additions and 99 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import { useListen } from "@/hooks/use-listen";
import { cmdTestDelay, downloadIconCache } from "@/services/cmds";
import delayManager from "@/services/delay";
import { showNotice } from "@/services/noticeService";
import { debugLog } from "@/utils/debug";
import { TestBox } from "./test-box";
@@ -107,7 +108,7 @@ export const TestItem = ({
return () => {
if (unlistenFn) {
console.log(
debugLog(
`TestItem for ${id} unmounting or url changed, cleaning up test-all listener.`,
);
unlistenFn();