From f12b209b5c3928a74efd8eb80e08f82eb4cf65e7 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期三, 07 四月 2021 14:27:35 +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