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 */