update 预览改为onlyOffice预览

This commit is contained in:
赵霄
2024-04-20 19:37:56 +08:00
parent 5f674a2f45
commit 4781d4062e
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -302,7 +302,7 @@ export default {
viewFileClick (file) { viewFileClick (file) {
const { href } = this.$router.resolve({ const { href } = this.$router.resolve({
path: '/previewHistoryPage', path: '/previewHistoryPage',
query: this.$route.query query: { ...this.$route.query, fileInfo: JSON.stringify(file) }
}) })
window.open(href, '_blank') window.open(href, '_blank')
}, },
+2 -1
View File
@@ -128,7 +128,8 @@ export default {
onDocumentSaved () { onDocumentSaved () {
console.log(12) console.log(12)
}, },
connectEditor (fileInfo = {}) { connectEditor () {
const fileInfo = JSON.parse(this.$route.query.fileInfo) || {}
const nowTime = new Date().getTime() const nowTime = new Date().getTime()
let url = '' let url = ''
let key = '' let key = ''