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; };