update 修改bug81427;把配置文件单独提出来

This commit is contained in:
赵霄
2024-01-29 14:41:24 +08:00
parent b924a179de
commit 52d3afd690
10 changed files with 32 additions and 18 deletions
+8 -14
View File
@@ -10,23 +10,17 @@
<script type="text/javascript" src="/v1/plugins-ui.js"></script>
<link rel="stylesheet" href="/v1/plugins.css">
<!-- 全局配置 -->
<!--开发环境-->
<% if (process.env.NODE_ENV === 'development' ) { %>
<script>
window._CONFIG = {
// 'interfaceUrl': 'http://139.9.235.66:8184',
'interfaceUrl': 'http://10.0.1.28:8184',
// 'downloadUrl': 'http://139.9.235.66:8184'
'downloadUrl': 'http://10.0.1.28:8184'
}
</script>
<script src="/dev_api_config.js"></script>
<% } %>
<!--生产环境-->
<% if (process.env.NODE_ENV === 'production' ) { %>
<script>
window._CONFIG = {
'interfaceUrl': 'http://laws.sinotruk.com',
'downloadUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080'
}
</script>
<script src="/prod_api_config.js"></script>
<% } %>
<!--测试环境-->
<% if (process.env.NODE_ENV === 'test' ) { %>
<script src="/test_api_config.js"></script>
<% } %>
</head>
<body>