update 配置项

This commit is contained in:
赵霄
2023-09-05 10:54:33 +08:00
parent f2b4785c34
commit 27a98d5c60
2 changed files with 30 additions and 29 deletions
+8 -7
View File
@@ -7,24 +7,25 @@
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<!-- onlyOffice服务器地址--> <!-- onlyOffice服务器地址-->
<!-- <script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>-->
<script type="text/javascript" src="http://47.92.92.38:8103/web-apps/apps/api/documents/api.js"></script> <script type="text/javascript" src="http://47.92.92.38:8103/web-apps/apps/api/documents/api.js"></script>
<!-- 全局配置 --> <!-- 全局配置 -->
<% if (process.env.NODE_ENV === 'development' ) { %> <% if (process.env.NODE_ENV === 'development' ) { %>
<script> <script>
window._CONFIG = { window._CONFIG = {
'documentUrl': 'http://39.98.140.126:18888/file/', 'documentUrl': 'http://39.98.140.126:18888/file/model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx',
// 'callbackUrl': 'http://39.98.140.126:17211/', // 'callbackUrl': 'http://39.98.140.126:17211/',
'configUrl': 'http://localhost:8081/', 'configUrl': 'http://localhost:8081/'
}; }
</script> </script>
<% } %> <% } %>
<% if (process.env.NODE_ENV === 'production' ) { %> <% if (process.env.NODE_ENV === 'production' ) { %>
<script> <script>
window._CONFIG = { window._CONFIG = {
'documentUrl': 'https://srms.foton.com.cn/file/', 'documentUrl': 'http://onlyofficevue.sinotruk.com/DOCX.docx',
'callbackUrl': 'https://srms.foton.com.cn', // 'callbackUrl': 'https://srms.foton.com.cn',
'configUrl': 'http://10.100.5.116:8089/', 'configUrl': 'http://onlyoffice.sinotruk.com/'
}; }
</script> </script>
<% } %> <% } %>
</head> </head>
+1 -1
View File
@@ -7,7 +7,7 @@ const routes = [
{ {
path: '/', path: '/',
name: 'Home', name: 'Home',
redirect: '/onlyoffice', redirect: '/editor',
}, },
{ {
path: '/onlyoffice', path: '/onlyoffice',