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 | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/main.js b/src/main.js index d0bd9ce..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,8 +24,11 @@ Vue.use(qs); Vue.use(api); +const javaApi = 'http://192.168.0.23:8001' +// localhost 127.0.0.1 + // const javaApi = 'http://127.0.0.1:8001/' -const javaApi = 'http://192.168.73.249:8001/' + axios.defaults.baseURL = javaApi @@ -58,6 +62,7 @@ // console.log(config.data) } + return config }, function(error) { return Promise.reject(error) -- Gitblit v1.9.3