Commit 6700c15a by 李伟康

fix(signHttp): 移除冗余的reject调用

移除在请求失败时重复的reject调用,避免错误处理逻辑重复执行。
该修改确保了错误处理流程的简洁性和一致性。
1 parent d4f1d3f2
...@@ -10,9 +10,6 @@ module.exports = { ...@@ -10,9 +10,6 @@ module.exports = {
title: '网络异常', title: '网络异常',
icon: "none", icon: "none",
}); });
reject({
msg: '网络异常'
});
return; return;
} }
if (!uni.$signHttp) uni.$signHttp = new Request(uni.signHttpConfig) if (!uni.$signHttp) uni.$signHttp = new Request(uni.signHttpConfig)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!