From 70d56d7abee4786ceca3ba7b54c4e439091c17c3 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Wed, 17 Jul 2024 16:18:20 +0800
Subject: [PATCH] 登录对接调整

---
 src/axios.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/axios.js b/src/axios.js
index 23bebb6..002d80c 100644
--- a/src/axios.js
+++ b/src/axios.js
@@ -67,16 +67,16 @@
         : 'bearer ' + token;
     }
     // 开启报文加密
-    if (cryptoData) {
-      if (config.params) {
-        const data = crypto.encryptAES(JSON.stringify(config.params), crypto.aesKey);
-        config.params = { data };
-      }
-      if (config.data) {
-        config.text = true;
-        config.data = crypto.encryptAES(JSON.stringify(config.data), crypto.aesKey);
-      }
-    }
+    // if (cryptoData) {
+    //   if (config.params) {
+    //     const data = crypto.encryptAES(JSON.stringify(config.params), crypto.aesKey);
+    //     config.params = { data };
+    //   }
+    //   if (config.data) {
+    //     config.text = true;
+    //     config.data = crypto.encryptAES(JSON.stringify(config.data), crypto.aesKey);
+    //   }
+    // }
     //headers中配置text请求
     if (config.text === true) {
       config.headers['Content-Type'] = 'text/plain';

--
Gitblit v1.9.3