From 4781d4062e304f0d8fa7d1e386f87b3dc57f84f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Sat, 20 Apr 2024 19:37:56 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=A2=84=E8=A7=88=E6=94=B9=E4=B8=BAon?= =?UTF-8?q?lyOffice=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/EditorPage.vue | 2 +- src/views/PreviewHistoryPage.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/EditorPage.vue b/src/views/EditorPage.vue index 2719a9f..77fa3b6 100644 --- a/src/views/EditorPage.vue +++ b/src/views/EditorPage.vue @@ -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') }, diff --git a/src/views/PreviewHistoryPage.vue b/src/views/PreviewHistoryPage.vue index 53a3d91..5ae506a 100644 --- a/src/views/PreviewHistoryPage.vue +++ b/src/views/PreviewHistoryPage.vue @@ -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 = ''