update 配置文件提出来

This commit is contained in:
赵霄
2024-01-22 11:57:45 +08:00
parent 14a8c6b887
commit 4de1951c89
4 changed files with 17 additions and 32 deletions
+6 -31
View File
@@ -6,41 +6,16 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<!--开发环境-->
<% if (process.env.NODE_ENV === 'development' ) { %>
<!-- onlyOffice服务器地址-->
<% if (process.env.NODE_ENV === 'development' ) { %>
<script type="text/javascript" src="http://10.10.10.45:80/web-apps/apps/api/documents/api.js"></script>
<!--<script type="text/javascript" src="http://only.hzwlsoft.com/web-apps/apps/api/documents/api.js"></script>-->
<!--<script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>-->
<script type="text/javascript" src="http://10.10.10.45:8103/web-apps/apps/api/documents/api.js"></script>
<script src="<%= BASE_URL %>dev_api_config.js"></script>
<% } %>
<!--测试环境-->
<% if (process.env.NODE_ENV === 'production' ) { %>
<!--<script type="text/javascript" src="http://10.10.10.45:80/web-apps/apps/api/documents/api.js"></script>-->
<script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>
<% } %>
<!-- 全局配置 -->
<% if (process.env.NODE_ENV === 'development' ) { %>
<script>
window._CONFIG = {
// 'documentUrl': 'http://onlyofficevue.sinotruk.com/DOCX.docx',
// 'documentUrl': 'http://39.98.140.126:18888/file/model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx',
'documentUrl': 'http://10.0.1.28:8184/laws-sinotruk/onlyoffice/downLoadFile?path=',
// 'documentUrl': 'http://139.9.235.66:8184/laws-sinotruk/onlyoffice/downLoadFile?path=',
'callbackUrl': 'http://10.0.1.28:8184/',
// 'callbackUrl': 'http://139.9.235.66:8184/',
// 'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
// 'configUrl': 'http://10.10.10.45:809/'
'configUrl': 'http://10.0.1.28:8081/'
// 'configUrl': 'http://192.168.31.181:8081/'
}
</script>
<% } %>
<% if (process.env.NODE_ENV === 'production' ) { %>
<script>
window._CONFIG = {
'documentUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/laws-sinotruk/onlyoffice/downLoadFile?path=',
'callbackUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/',
'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
}
</script>
<script src="<%= BASE_URL %>prod_api_config.js"></script>
<% } %>
</head>
<body>