You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
406 B

import http from './interface'
/**
* 将业务所有接口统一起来便于维护
* 如果项目很大可以将 url 独立成文件,接口分成不同的模块
*
*/
export const doGet = (url,data) => {
return http.get(url,data);
}
export const doPost = (url,data) => {
return http.post(url,data);
}
// 默认全部导出 import api from '@/common/http/'
export default {
doGet,
doPost
}