From a3f2a415049e1444110cea2a34ecb51b40c1b1bd Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期三, 31 三月 2021 15:42:03 +0800 Subject: [PATCH] 图层控制 --- src/api/mapApi.js | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/api/mapApi.js b/src/api/mapApi.js index 3cde8cb..7590948 100644 --- a/src/api/mapApi.js +++ b/src/api/mapApi.js @@ -3,13 +3,19 @@ // const $HOST = 'http://10.238.221.113' // 娴嬭瘯鐜IP锛歨ttp://10.238.221.113 import axios from '@utils/axios' +import * as mapUrl from './mapUrl' + /** * 璇ユ柟娉曢厤缃� */ -class MapAPI { - getToken (param) { - axios.get(param.url, param.option) +export default { + getUser (data) { + return axios.get(mapUrl.GetUser, data) + }, + getSolidWaste (data) { + return axios.get(mapUrl.getSolidWaste, data) + }, + GetWasteGas (data) { + return axios.get(mapUrl.GetWasteGas, data) } } - -export default new MapAPI() -- Gitblit v1.8.0