Commit aee956fc by fengzhaoyu

feat: 去掉senfError

parent 459f57f3
......@@ -45,7 +45,6 @@ export default function xFetch({ url, method, data, type }) {
let alert = false;
function alertOnce(content, rejects, err) {
if (alert == false) {
sendError(JSON.stringify(err))
dd.alert({
content: content,
buttonText: "确定",
......@@ -56,22 +55,4 @@ function alertOnce(content, rejects, err) {
});
}
alert = true;
}
function sendError(err) {
let url = `${getApp().globalData.globalUrl}/meet/job/addLog`
dd.httpRequest({
headers: {
"Content-Type": "application/json;charset=UTF-8",
Authorization: `Bearer ${getApp().globalData.token}`
},
data: err,
url: url,
method: 'post',
dataType: "json",
timeout: 15000,
success: function (res) {
},
fail: function (err) {
}
});
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment