/*
* @Author: DDY
* @Date: 2021-06-27 19:29:06
*/
import { myHttp } from './Require';
const envProxy = "/dev";
export const Api= {
getLog(data){
return myHttp(data,envProxy +'/api/logData','get');
},
addUser(data){
return myHttp(data,envProxy +'/api/addUser','post');
},
}
xxx.vue 使用
import { Api } from '@/http/api';
getLog: (pam) => {
Api.getLog(pam).then((res) => {
}).catch((err) => {});
}
网友评论