update 预览改为onlyOffice预览
This commit is contained in:
@@ -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')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user