From ee75969fba77f14685c8e114a298066a18554936 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 19 五月 2024 19:28:02 +0800
Subject: [PATCH] update
---
src/utils/request.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/utils/request.js b/src/utils/request.js
index e680a48..558221f 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -156,7 +156,6 @@
*/
postJ: function (url, data = {}, config = {}) {
return new Promise((resolve, reject) => {
- console.log(qsStringify(data))
axios({
method: 'post',
url: url,
@@ -166,6 +165,7 @@
}).then((response) => {
resolve(response.data);
}).catch((error) => {
+ resolve(error.data);
reject(error);
})
})
--
Gitblit v1.9.3