添加请求接口

master
yujialong 3 years ago
parent 282de476da
commit a73d1a77aa
  1. 5
      src/utils/http.js

@ -135,7 +135,7 @@ export function get(url, params){
break;
case 500:
this.$message.error(
res.data.errmessage
res.data.errmessage || res.data.message
);
break;
case 404:
@ -196,8 +196,9 @@ export function post(url, params) {
resolve(res.data);
break;
case 500:
resolve(res.data);
this.$message.error(
res.data.errmessage
res.data.errmessage || res.data.message
);
break;
case 404:

Loading…
Cancel
Save