This commit is contained in:
2024-05-17 10:14:19 +08:00
parent fd1a7705c1
commit c7189c787e
12 changed files with 1351 additions and 1170 deletions

View File

@@ -293,9 +293,10 @@ $http.dataFactory = async function(res) {
errMsg: "【request】" + (httpData.info || httpData.msg),
data: res.data
});
} else { //其他错误提示
} else { //其他错误提示
console.log(httpData, '其他')
console.log(httpData.info || httpData.msg)
if (res.isPrompt && res.data.loadAnimate != 'none') {
if (res.isPrompt && res.data.loadAnimate != 'none') {
uni.showToast({
title: httpData.info || httpData.msg,
icon: "none",
@@ -334,4 +335,4 @@ $http.requestError = function(e) {
// });
}
}
export default $http;
export default $http;