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