You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
334 B
JavaScript
15 lines
334 B
JavaScript
window.ENV = 'production'
|
|
var productionConfig = {
|
|
baseUrl: getIpPort(),
|
|
fileUrlPrefix: getIpPort() + '/dataroom',
|
|
}
|
|
// 必须的
|
|
window.CONFIG = configDeepMerge(window.CONFIG, productionConfig)
|
|
|
|
|
|
function getIpPort() {
|
|
// 从当前网址中获取ip和端口
|
|
const ipPort = window.location.host;
|
|
return "http://" + ipPort
|
|
}
|