update 参数修改

This commit is contained in:
赵霄
2023-09-16 17:53:11 +08:00
parent 2d97248379
commit f65fa509ea
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -134,6 +134,7 @@ export default {
connectEditor () {
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}`)
const nowTime = new Date().getTime()
this.docEditor = new DocsAPI.DocEditor('iframeEditor', {
width: '100%',
@@ -149,7 +150,7 @@ export default {
title: this.$route.query.fileName,
url: `${this.documentUrl}${this.$route.query.filePath}`,
fileType: this.$route.query.fileType,
key: this.$route.query.key,
key: this.$route.query.key + new Date().getTime(),
info: {
author: 'Me',
created: 'Wed Oct 12 2022'
+1
View File
@@ -58,6 +58,7 @@ export default {
filePath: data.editFilePath,
fileName: data.fileName,
fileType: 'docx',
fileId: data.id,
key: data.id
}
})