From a5e86bbc3cbb4d6e3e8ccaa9607d0d405fbf039a Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期二, 13 四月 2021 16:42:58 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
---
src/utils/AjaxUtils.js | 22 +++-------------------
1 files changed, 3 insertions(+), 19 deletions(-)
diff --git a/src/utils/AjaxUtils.js b/src/utils/AjaxUtils.js
index d0e1bfa..b99fd67 100644
--- a/src/utils/AjaxUtils.js
+++ b/src/utils/AjaxUtils.js
@@ -44,31 +44,15 @@
const GetDataAsynByUrl = async (oUrl, pData) => {
const pUrl = encodeURI(oUrl)
- const res = await axios({
- method: 'get',
- url: pUrl,
- data: pData
+ const res = await axios.get(pUrl, {
+ params: pData
}).then((response) => {
return (response)
})
.catch((error) => {
console.error('鏁版嵁鑾峰彇澶辫触', error)
})
- return res
-
- // $.ajax({
- // type: 'GET',
- // url: pUrl,
- // data: pData,
- // timeout: 600000,
- // async: true,
- // success: function (datas, nnn) {
- // pBackFun(datas)
- // },
- // error: function (e, nnnn) {
- // console.error('鏁版嵁鑾峰彇澶辫触', pUrl)
- // }
- // })
+ return res.data
}
function postDataAsynByUrl (pUrl, pData, pBackFun) {
$.ajax({
--
Gitblit v1.8.0