From bef0978ab26369e2000820fafe76a1494ef7a3f0 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 13 九月 2023 14:34:50 +0800
Subject: [PATCH] 改bug
---
src/main.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/main.js b/src/main.js
index 4721519..9417325 100644
--- a/src/main.js
+++ b/src/main.js
@@ -12,6 +12,7 @@
import swal from 'sweetalert'
Vue.prototype.LOCATIONVUE = "http://127.0.0.1:80/"; //鍓嶇鏈湴绔彛
+
Vue.prototype.HaveJson = (val) => {
return JSON.parse(JSON.stringify(val))
}
@@ -23,7 +24,12 @@
Vue.use(qs);
Vue.use(api);
-const javaApi = 'http://192.168.137.138:8001/'
+const javaApi = 'http://192.168.0.23:8001'
+// localhost 127.0.0.1
+
+// 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,6 +62,7 @@
// console.log(config.data)
}
+
return config
}, function(error) {
return Promise.reject(error)
--
Gitblit v1.9.3