日志控制

This commit is contained in:
chen wei bo
2025-09-21 20:36:25 +08:00
parent e78f6b937e
commit 93bfe3174f
23 changed files with 91 additions and 81 deletions
+2 -2
View File
@@ -89,12 +89,12 @@ export default class HttpUnit {
}
};
xhr.onerror = (error) => {
console.error("http request onerror");
logger.error("http request onerror");
SubManager.ShowPrompt("网络错误,请检查网络连接");
reason(error)
};
xhr.ontimeout = (e) => {
console.error("http request timeout");
logger.error("http request timeout");
SubManager.ShowPrompt("网络错误,请检查网络连接");
reason(e)
}