From 7d7e8ecae28b29668a5a6683049b621b052e766d Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 19 五月 2024 19:55:46 +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