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
|
apiClient.post
|
||||||
.getPreviewLinkById(this.postToStage.id)
|
.getPreviewLinkById(this.postToStage.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
window.open(response.data, '_blank')
|
window.open(response, '_blank')
|
||||||
this.handleRestoreSavedStatus()
|
this.handleRestoreSavedStatus()
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
@ -197,7 +197,7 @@ export default {
|
||||||
apiClient.post
|
apiClient.post
|
||||||
.getPreviewLinkById(this.postToStage.id)
|
.getPreviewLinkById(this.postToStage.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
window.open(response.data, '_blank')
|
window.open(response, '_blank')
|
||||||
this.handleRestoreSavedStatus()
|
this.handleRestoreSavedStatus()
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
@ -176,7 +176,7 @@ export default {
|
||||||
apiClient.sheet
|
apiClient.sheet
|
||||||
.getPreviewLinkById(this.sheetToStage.id)
|
.getPreviewLinkById(this.sheetToStage.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
window.open(response.data, '_blank')
|
window.open(response, '_blank')
|
||||||
this.handleRestoreSavedStatus()
|
this.handleRestoreSavedStatus()
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
@ -192,7 +192,7 @@ export default {
|
||||||
apiClient.sheet
|
apiClient.sheet
|
||||||
.getPreviewLinkById(this.sheetToStage.id)
|
.getPreviewLinkById(this.sheetToStage.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
window.open(response.data, '_blank')
|
window.open(response, '_blank')
|
||||||
this.handleRestoreSavedStatus()
|
this.handleRestoreSavedStatus()
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
Loading…
Reference in New Issue