update 预览改为onlyOffice预览
This commit is contained in:
@@ -302,7 +302,7 @@ export default {
|
||||
viewFileClick (file) {
|
||||
const { href } = this.$router.resolve({
|
||||
path: '/previewHistoryPage',
|
||||
query: this.$route.query
|
||||
query: { ...this.$route.query, fileInfo: JSON.stringify(file) }
|
||||
})
|
||||
window.open(href, '_blank')
|
||||
},
|
||||
|
||||
@@ -128,7 +128,8 @@ export default {
|
||||
onDocumentSaved () {
|
||||
console.log(12)
|
||||
},
|
||||
connectEditor (fileInfo = {}) {
|
||||
connectEditor () {
|
||||
const fileInfo = JSON.parse(this.$route.query.fileInfo) || {}
|
||||
const nowTime = new Date().getTime()
|
||||
let url = ''
|
||||
let key = ''
|
||||
|
||||
Reference in New Issue
Block a user