update 路径修改

This commit is contained in:
赵霄
2024-01-23 10:21:22 +08:00
parent 4de1951c89
commit 45e0b068e1
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -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