mirror of https://github.com/halo-dev/halo-admin
fix: the problem that post cannot be previewed (#437)
parent
35e47ee309
commit
022a3e1648
|
@ -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(() => {
|
||||
|
|
|
@ -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…
Reference in New Issue