waiwangdizhi
This commit is contained in:
parent
a0c03ac24d
commit
7753602409
|
@ -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">
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue