From fbd66eb2aa443d79db249e49f134f9a5a88c2d44 Mon Sep 17 00:00:00 2001 From: zhangshuaibao <15731629597@163.com> Date: 星期三, 31 三月 2021 16:01:09 +0800 Subject: [PATCH] 重新定义请求方式,标点 --- src/api/mapUrl.js | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/api/mapUrl.js b/src/api/mapUrl.js index c337552..9db2667 100644 --- a/src/api/mapUrl.js +++ b/src/api/mapUrl.js @@ -1,10 +1,14 @@ /** - * 璇ユ枃浠堕厤缃帴鍙g殑URL鍦板潃 - */ -class ApiURLs{ - constructor(){ - this.APIURL_HELLOWORLD = 'http://www.baidu.com' - } -} + * 璇ユ枃浠堕厤缃帴鍙g殑URL鍦板潃 + */ +import { $HOST } from './host' -export default new ApiURLs() +export const GetUser = $HOST + '/user/getUser' + +export const GetWasteGas = $HOST + '/wasteGas/getWasteGas' + +export const getSolidWaste = $HOST + '/wasteSolid/getSolidWaste' + +export const getWasteWater = $HOST + '/wasteWater/getWasteWater' + +export const getSolidWasteBaseInfo = $HOST + '/wasteSolid/getSolidWasteBaseInfo' -- Gitblit v1.8.0