waiwangdizhi

This commit is contained in:
shijing 2022-09-16 10:32:49 +08:00
parent a0c03ac24d
commit 7753602409
2 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,12 @@
if(dark){
document.documentElement.classList.add("dark")
}
debugger;
let urls = window.location.host;
window.IPConfig = {
//此处的IP在打包不会被编译可修改
baseURL: urls+'/api'
}
</script>
<div id="app" class="aminui">
<div class="app-loading">

View File

@ -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,