From 45e0b068e13d2040e16e6c5334d985c78f49fcae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Tue, 23 Jan 2024 10:21:22 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/dev_api_config.js | 2 +- public/index.html | 2 +- src/api/fileApi.js | 6 +++--- src/views/editor.vue | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/public/dev_api_config.js b/public/dev_api_config.js index 74b7ac0..5b7627a 100644 --- a/public/dev_api_config.js +++ b/public/dev_api_config.js @@ -1,4 +1,4 @@ window._CONFIG = {} -window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyoffice/downLoadFile?path=' +window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyOffice/downLoadFile?path=' window._CONFIG.callbackUrl = 'http://10.0.1.19:8184/' window._CONFIG.configUrl = 'http://10.0.1.19:8082/' diff --git a/public/index.html b/public/index.html index a78559f..12a1603 100644 --- a/public/index.html +++ b/public/index.html @@ -9,7 +9,7 @@ <% if (process.env.NODE_ENV === 'development' ) { %> - + <% } %> diff --git a/src/api/fileApi.js b/src/api/fileApi.js index 1a6f42d..eca99a9 100644 --- a/src/api/fileApi.js +++ b/src/api/fileApi.js @@ -1,8 +1,8 @@ import { getAction, postAction } from './manage.js' -const addFile = (params) => getAction('/onlyoffice/saveEditFile', params) -const getList = (params) => getAction('/onlyoffice/pageList', params) -const deleteFile = (params) => postAction('/onlyoffice/delete', params) +const addFile = (params) => getAction('/onlyOffice/saveEditFile', params) +const getList = (params) => getAction('/onlyOffice/pageList', params) +const deleteFile = (params) => postAction('/onlyOffice/delete', params) export { addFile, diff --git a/src/views/editor.vue b/src/views/editor.vue index a76225e..be20a48 100644 --- a/src/views/editor.vue +++ b/src/views/editor.vue @@ -132,9 +132,10 @@ export default { console.log(12) }, connectEditor () { + console.log(this.$route.query) console.log(`${this.documentUrl}${this.$route.query.filePath}`) console.log(window._CONFIG.configUrl + 'page1/config.json') - console.log(`${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`) + console.log(`${this.callbackUrl}laws-sinotruk/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`) const nowTime = new Date().getTime() this.docEditor = new DocsAPI.DocEditor('iframeEditor', { width: '100%', @@ -152,7 +153,7 @@ export default { fileType: this.$route.query.fileType, key: this.$route.query.key + new Date().getTime(), info: { - author: 'Me', + author: this.$route.query.userName, created: 'Wed Oct 12 2022' }, permissions: { @@ -182,8 +183,7 @@ export default { query: { id: 123456 }, - callbackUrl: - `${this.callbackUrl}laws-sinotruk/onlyoffice/recieveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`, + callbackUrl: `${this.callbackUrl}laws-sinotruk/onlyOffice/receiveFile?fileId=${this.$route.query.fileId}&fileNm=${this.$route.query.fileName}&key=${this.$route.query.key}`, user: { id: this.$route.query.userId, name: this.$route.query.userName