From c4b23c5be37d58638fc76d2f9eeb3d98ab42e7bc Mon Sep 17 00:00:00 2001 From: yjl <1490736767@qq.com> Date: Fri, 31 Mar 2023 18:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/http.js | 6 ++++-- src/store/index.js | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/assets/js/http.js b/src/assets/js/http.js index 0c261f24..c4273443 100644 --- a/src/assets/js/http.js +++ b/src/assets/js/http.js @@ -78,16 +78,18 @@ if (process.env.NODE_ENV == 'development') { // axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地 // axios.defaults.baseURL = 'http://192.168.34.221:8210' //郭圣雄本地 // axios.defaults.baseURL = 'http://192.168.34.221:12346' //郭圣雄本地 + axios.defaults.baseURL = 'http://192.168.34.221:12350' //金林湾本地 // axios.defaults.baseURL = 'http://192.168.34.122:8070' //彭洁本地 // axios.defaults.baseURL = 'http://101.43.164.214:11111' //百色线上 // axios.defaults.baseURL = 'http://101.43.164.214:12345/#/'//内蒙古线上 - axios.defaults.baseURL = 'http://121.196.214.246/api'//金林湾线上新 + // axios.defaults.baseURL = 'http://121.196.214.246/api'//金林湾线上新 } else if (process.env.NODE_ENV == 'debug') { axios.defaults.baseURL = 'https://www.ceshi.com' } else if (process.env.NODE_ENV == 'production') { let host = window.location.host - axios.defaults.baseURL = window.location.protocol + '//' + host + '/api' + axios.defaults.baseURL = window.location.protocol + '//' + host + '/api'//金林湾地址 + // axios.defaults.baseURL = window.location.protocol + '//' + host + '/' // axios.defaults.baseURL ='http://192.168.34.216:6023/' // axios.defaults.baseURL = window.location.protocol + "//" + host.split(":")[0] + ":6023" + "/" // axios.defaults.baseURL = 'http://zhgd.loganwy.com/' diff --git a/src/store/index.js b/src/store/index.js index aca30247..ac635365 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -47,9 +47,9 @@ export default new Vuex.Store({ // FILEURL:'http://10.0.1.43:6023/image/',//测试 BASEURL: baseUrl ? baseUrl - : window.location.protocol + "//" + window.location.host + "/", // + : window.location.protocol + "//" + window.location.host + "/api", // // UPLOADURL: - // window.location.protocol + "//" + window.location.host + "/upload/image", // + // window.location.protocol + "//" + window.location.host + "/api/upload/image", // // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试 // tag: 本地测试接口 // BASEURL:'http://192.168.34.174:6023/', /* 2022-05-16 */