From 712b72a5bf70818ae60550a32543b3220e4918f2 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期一, 25 九月 2023 09:12:43 +0800
Subject: [PATCH] 改bug
---
src/main.js | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/main.js b/src/main.js
index 112ae06..9a81a52 100644
--- a/src/main.js
+++ b/src/main.js
@@ -23,7 +23,11 @@
Vue.use(qs);
Vue.use(api);
-const javaApi = 'http://192.168.110.107:8001/'
+const javaApi = 'http://localhost:8001'
+
+// const javaApi = 'http://127.0.0.1:8001/'
+
+
axios.defaults.baseURL = javaApi
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
@@ -56,12 +60,16 @@
// console.log(config.data)
}
+
return config
}, function(error) {
return Promise.reject(error)
})
axios.interceptors.response.use(res => {
+ if(res.config.responseType === 'blob'){
+ return res;
+ }
return res.data
}, async function(err) {
if (JSON.stringify(err).indexOf('timeout of') > -1) {
--
Gitblit v1.9.3