mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
错误提示
This commit is contained in:
@@ -47,6 +47,9 @@ const formRequest=axios.create({
|
||||
Promise.reject(error)
|
||||
});
|
||||
formRequest.interceptors.response.use(res => {
|
||||
console.log(res);
|
||||
res.data=JSON.parse(res.data);
|
||||
|
||||
const code = res.data.status || 200;
|
||||
if(code===200){
|
||||
return res.data
|
||||
@@ -67,7 +70,7 @@ const formRequest=axios.create({
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log('err' + error)
|
||||
console.log('err',error)
|
||||
let { message } = error;
|
||||
if (message == "Network Error") {
|
||||
message = "网络异常,请稍后重试";
|
||||
|
||||
@@ -1382,9 +1382,10 @@ export default {
|
||||
};
|
||||
this.btnLoading = true;
|
||||
let $this = this;
|
||||
console.log(this.courseInfo.orgId,'this.courseInfo.orgId')
|
||||
//console.log(this.courseInfo.orgId,'this.courseInfo.orgId')
|
||||
//先获取HRBP审核 人员信息,姓名,机构路径,工号,用于邮件中的信息
|
||||
apiUserBasic.getOrgHrbpInfo(this.courseInfo.orgId).then(rs=>{
|
||||
|
||||
if(rs.status==200 && rs.result){
|
||||
postData.auditUser={
|
||||
email:rs.result.email,
|
||||
@@ -1430,6 +1431,8 @@ export default {
|
||||
$this.btnLoading = false;
|
||||
this.$message.error('获取审核HRBP失败:'+rs.message);
|
||||
}
|
||||
}).catch(err=>{
|
||||
this.$message.error('获取审核HRBP失败:'+err);
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user