src/api/mapApi.js
@@ -2,13 +2,20 @@ // import * as Service from './services' // const $HOST = 'http://10.238.221.113' // 测试环境IP:http://10.238.221.113 import axios from '@utils/axios' import * as mapUrl from './mapUrl' /** * 该方法配置 */ class MapAPI{ export default { getUser (data) { return axios.get(mapUrl.GetUser, data) }, getSolidWaste (data) { return axios.get(mapUrl.getSolidWaste, data) }, getWasteWater (data) { return axios.get(mapUrl.getWasteWater, data) } } export default new MapAPI()