|
@@ -125,7 +125,7 @@ export async function queryDingInstanceExecute(params) {
|
|
body: params,
|
|
body: params,
|
|
});
|
|
});
|
|
if (res.data.errcode != 0) {
|
|
if (res.data.errcode != 0) {
|
|
- message.error("审批失败,请联系管理员。");
|
|
|
|
|
|
+ message.error('审批失败,请联系管理员。');
|
|
throw new Error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
}
|
|
}
|
|
return res;
|
|
return res;
|
|
@@ -349,7 +349,8 @@ export async function uploadFile(data) {
|
|
ContentType: 'application/x-www-form-urlencoded',
|
|
ContentType: 'application/x-www-form-urlencoded',
|
|
},
|
|
},
|
|
});
|
|
});
|
|
- if (res.data.errcode != 0) {
|
|
|
|
|
|
+ if (!res.data.dentry) {
|
|
|
|
+ message.error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
}
|
|
}
|
|
return res.data;
|
|
return res.data;
|
|
@@ -360,6 +361,7 @@ export async function bindDDCode(userId, code) {
|
|
method: 'GET',
|
|
method: 'GET',
|
|
});
|
|
});
|
|
if (res.data.errcode != 0) {
|
|
if (res.data.errcode != 0) {
|
|
|
|
+ message.error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
throw new Error(res.data.errmsg);
|
|
}
|
|
}
|
|
return res.data;
|
|
return res.data;
|