哪儿来的中文报错

This commit is contained in:
海龙 2025-08-29 01:38:38 +08:00
parent 96acb6bffb
commit 0fa84b466f
2 changed files with 8 additions and 8 deletions

View File

@ -21,7 +21,7 @@ const HTTP_ERROR_MESSAGES: Record<number, string> = {
/**
*
*/
const DEFAULT_ERROR_MESSAGE = "网络异常,请重试。如果问题持续存在,请联系我们。";
const DEFAULT_ERROR_MESSAGE = "Network error, please try again. If the problem persists, please contact us.";
/**
*

View File

@ -15,7 +15,7 @@ const handleRequestError = (error: any, defaultMessage: string = '请求失败')
errorHandle(status, errorMessage);
} else if (error.request) {
// 请求已发出但没有收到响应
errorHandle(0, '网络请求失败,请检查网络连接');
errorHandle(0 );
} else {
// 请求配置出错
errorHandle(0, error.message || defaultMessage);