Browse Source

fix: the problem that post cannot be previewed (#437)

pull/441/head
guqing 3 years ago committed by GitHub
parent
commit
022a3e1648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/views/post/PostEdit.vue
  2. 4
      src/views/sheet/SheetEdit.vue

4
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(() => {

4
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(() => {

Loading…
Cancel
Save