From de9c9f8d88fb214d082b22ffa7d1ffca0bd3efba Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Wed, 28 Aug 2024 10:44:57 +0800
Subject: [PATCH] 操作日志页面修改

---
 src/axios.js |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/axios.js b/src/axios.js
index 23bebb6..e002a88 100644
--- a/src/axios.js
+++ b/src/axios.js
@@ -22,7 +22,8 @@
 // 全局未授权错误提示状态,只提示一次
 let isErrorShown = false;
 
-axios.defaults.timeout = 10000;
+// 超时时间设置为10分钟,部分接口上传比较慢,如固件上传
+axios.defaults.timeout = 600000;
 //返回其他状态码
 axios.defaults.validateStatus = function (status) {
   return status >= 200 && status <= 500; // 默认的
@@ -67,16 +68,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