[add] init

This commit is contained in:
lideqin
2024-09-23 16:12:19 +08:00
parent c9d7eca7d9
commit 5f9c754235
24 changed files with 23219 additions and 83 deletions
+7
View File
@@ -0,0 +1,7 @@
window._CONFIG = {}
// onlyOffice文件获取地址
window._CONFIG.documentUrl = 'http://10.0.10.87:8188/laws-sinotruk/onlyOffice/downLoadFile?path='
// onlyOffice文件保存回调地址(后端服务的ip端口,最后一个/是必须的)
window._CONFIG.callbackUrl = 'http://10.0.10.87:8188/'
// onlyOffice自定义编辑器的地址(plugins的前端路径,最后一个/是必须的)
window._CONFIG.configUrl = 'http://10.0.10.87:8092/'
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+32
View File
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<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服务器地址-->
<script type="text/javascript" src="http://10.10.10.45:8107/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://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>-->
<!--公司测试环境-->
<script type="text/javascript" src="http://10.10.10.45:8107/web-apps/apps/api/documents/api.js"></script>
<script src="<%= BASE_URL %>prod_api_config.js"></script>
<% } %>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
+7
View File
@@ -0,0 +1,7 @@
window._CONFIG = {}
// onlyOffice文件获取地址
window._CONFIG.documentUrl = 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/laws-sinotruk/onlyOffice/downLoadFile?path='
// onlyOffice文件保存回调地址(后端服务的ip端口,最后一个/是必须的)
window._CONFIG.callbackUrl = 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/'
// onlyOffice自定义编辑器的地址(plugins的前端路径,最后一个/是必须的)
window._CONFIG.configUrl = 'http://srms-test.sinotruk.com/onlyofficeplugins/'