update 参数修改
This commit is contained in:
@@ -134,6 +134,7 @@ export default {
|
|||||||
connectEditor () {
|
connectEditor () {
|
||||||
console.log(`${this.documentUrl}${this.$route.query.filePath}`)
|
console.log(`${this.documentUrl}${this.$route.query.filePath}`)
|
||||||
console.log(window._CONFIG.configUrl + 'page1/config.json')
|
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}`)
|
||||||
const nowTime = new Date().getTime()
|
const nowTime = new Date().getTime()
|
||||||
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
|
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@@ -149,7 +150,7 @@ export default {
|
|||||||
title: this.$route.query.fileName,
|
title: this.$route.query.fileName,
|
||||||
url: `${this.documentUrl}${this.$route.query.filePath}`,
|
url: `${this.documentUrl}${this.$route.query.filePath}`,
|
||||||
fileType: this.$route.query.fileType,
|
fileType: this.$route.query.fileType,
|
||||||
key: this.$route.query.key,
|
key: this.$route.query.key + new Date().getTime(),
|
||||||
info: {
|
info: {
|
||||||
author: 'Me',
|
author: 'Me',
|
||||||
created: 'Wed Oct 12 2022'
|
created: 'Wed Oct 12 2022'
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export default {
|
|||||||
filePath: data.editFilePath,
|
filePath: data.editFilePath,
|
||||||
fileName: data.fileName,
|
fileName: data.fileName,
|
||||||
fileType: 'docx',
|
fileType: 'docx',
|
||||||
|
fileId: data.id,
|
||||||
key: data.id
|
key: data.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user