添加请求接口

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

Loading…
Cancel
Save