diff --git a/public/index.html b/public/index.html
index 359ab03c..f7bf6def 100644
--- a/public/index.html
+++ b/public/index.html
@@ -22,6 +22,12 @@
if(dark){
document.documentElement.classList.add("dark")
}
+ debugger;
+ let urls = window.location.host;
+ window.IPConfig = {
+ //此处的IP在打包不会被编译,可修改
+ baseURL: urls+'/api'
+ }
diff --git a/src/config/index.js b/src/config/index.js
index 563db619..5ac93661 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -13,7 +13,7 @@ const DEFAULT_CONFIG = {
//接口地址
// API_URL: process.env.NODE_ENV === 'development' && process.env.VUE_APP_PROXY === 'false' ? "/api" : process.env.VUE_APP_API_BASEURL,
- API_URL: window.IPConfig.baseURL,
+ API_URL: window.IPConfig.baseURL.indexOf('localhost')? 'http://10.99.5.79:20309/api' : window.IPConfig.baseURL,
//请求超时
TIMEOUT: 200000,