sanmu
authored
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { defHttp } from '/@/utils/http/axios';
enum Api {
DATA = '/order/erp/index/data',
CHART_DATA = '/order/erp/index/chartData',
}
export const getApiData = async () => {
const res = await defHttp.get<any>({ url: Api.DATA });
return res;
};
export const getChartData = async () => {
const res = await defHttp.get<any>({ url: Api.CHART_DATA });
return res;
};
|