From 022a3e1648c4ff86123f2ac921c3592cc8d59a26 Mon Sep 17 00:00:00 2001 From: guqing <38999863+guqing@users.noreply.github.com> Date: Tue, 15 Feb 2022 22:12:45 +0800 Subject: [PATCH] fix: the problem that post cannot be previewed (#437) --- src/views/post/PostEdit.vue | 4 ++-- src/views/sheet/SheetEdit.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/post/PostEdit.vue b/src/views/post/PostEdit.vue index 3329c255..23b09e91 100644 --- a/src/views/post/PostEdit.vue +++ b/src/views/post/PostEdit.vue @@ -180,7 +180,7 @@ export default { apiClient.post .getPreviewLinkById(this.postToStage.id) .then(response => { - window.open(response.data, '_blank') + window.open(response, '_blank') this.handleRestoreSavedStatus() }) .finally(() => { @@ -197,7 +197,7 @@ export default { apiClient.post .getPreviewLinkById(this.postToStage.id) .then(response => { - window.open(response.data, '_blank') + window.open(response, '_blank') this.handleRestoreSavedStatus() }) .finally(() => { diff --git a/src/views/sheet/SheetEdit.vue b/src/views/sheet/SheetEdit.vue index eea9035c..9d2b70e0 100644 --- a/src/views/sheet/SheetEdit.vue +++ b/src/views/sheet/SheetEdit.vue @@ -176,7 +176,7 @@ export default { apiClient.sheet .getPreviewLinkById(this.sheetToStage.id) .then(response => { - window.open(response.data, '_blank') + window.open(response, '_blank') this.handleRestoreSavedStatus() }) .finally(() => { @@ -192,7 +192,7 @@ export default { apiClient.sheet .getPreviewLinkById(this.sheetToStage.id) .then(response => { - window.open(response.data, '_blank') + window.open(response, '_blank') this.handleRestoreSavedStatus() }) .finally(() => {