From e7bc3a89c88c161fb9de47f2417dfa5e3c042e8f Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期四, 28 三月 2024 18:30:09 +0800
Subject: [PATCH] 1

---
 src/utils/request.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/utils/request.js b/src/utils/request.js
index 239f85b..3295418 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -12,12 +12,13 @@
 axios.interceptors.request.use(
 	(config) => {
 		let token = tool.cookie.get("TOKEN");
+		config.headers['Authorization'] = 'Basic c2FiZXI6c2FiZXJfc2VjcmV0'
 		if(token){
 			config.headers[sysConfig.TOKEN_NAME] = sysConfig.TOKEN_PREFIX + token
 		}
 		if(!sysConfig.REQUEST_CACHE && config.method == 'get'){
 			config.params = config.params || {};
-			config.params['_'] = new Date().getTime();
+			// config.params['_'] = new Date().getTime();
 		}
 		Object.assign(config.headers, sysConfig.HEADERS)
 		return config;
@@ -144,7 +145,7 @@
 			axios({
 				method: 'post',
 				url: url,
-				headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8','Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0'},
+				headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'},
 				data: qsStringify(data),
 				...config
 			}).then((response) => {
@@ -204,7 +205,7 @@
 			axios({
 				method: 'delete',
 				url: url,
-				data: data,
+				params: data,
 				...config
 			}).then((response) => {
 				resolve(response.data);

--
Gitblit v1.9.3