From f27f9c9401d91762ebdc46a8411645701e09b4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Thu, 21 Mar 2024 11:45:52 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=94=99=E8=AF=AF=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 4 ++-- public/prod_api_config.js | 4 +++- src/router/index.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 5ede372..385bfab 100644 --- a/public/index.html +++ b/public/index.html @@ -9,7 +9,7 @@ <% if (process.env.NODE_ENV === 'development' ) { %> - + <% } %> @@ -17,7 +17,7 @@ - + <% } %> diff --git a/public/prod_api_config.js b/public/prod_api_config.js index cf55744..f740d1e 100644 --- a/public/prod_api_config.js +++ b/public/prod_api_config.js @@ -1,7 +1,9 @@ window._CONFIG = {} // onlyOffice文件获取地址 -window._CONFIG.documentUrl = 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/laws-sinotruk/onlyoffice/downLoadFile?path=' +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://onlyofficeplugins.sinotruk.com/' +// 预览文件地址 +window._CONFIG.onlinePreviewDomainURL = 'http://127.0.0.1:8012/onlinePreview' diff --git a/src/router/index.js b/src/router/index.js index 85b7f80..29ce94b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,7 +7,7 @@ const routes = [ { path: '/', name: 'Home', - redirect: '/List' + redirect: '/editorPage' }, { path: '/List',