fix: 更新开发环境的baseUrl配置,调整错误信息返回格式

This commit is contained in:
2026-05-20 13:27:18 +08:00
parent 0fbea2d669
commit 059017e787
2 changed files with 4 additions and 3 deletions

View File

@@ -307,7 +307,8 @@ $http.dataFactory = async function(res) {
// 返回错误的结果(catch接受数据)
return Promise.reject({
statusCode: 0,
errMsg: "【request】" + (httpData.info || httpData.msg),
// errMsg: "【request】" + (httpData.info || httpData.msg),
errMsg: (httpData.info || httpData.msg),
data: res.data
});
}