Commit 842b9f57 by Kyle_Li

更改获取报错信息的方法

parent ce80d85c
......@@ -546,7 +546,7 @@ export default {
})
.catch(err => {
checkStatus(err);
this.dialogSubStoreVisible = false;
this.dilogBaseVisible = false;
this.$refs[formName].resetFields();
});
} else {
......
......@@ -547,7 +547,7 @@ export default {
})
.catch(err => {
checkStatus(err);
this.dialogSubStoreVisible = false;
this.dilogBaseVisible = false;
this.$refs[formName].resetFields();
});
} else {
......
......@@ -26,6 +26,9 @@ export function checkStatus(err) {
}else if(err.response.status == 500){
Message.error('服务器错误500');
return false;
} else {
Message.error(err.response.message);
return false;
}
}else {
Message.error(err);
......
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