mirror of https://github.com/halo-dev/halo
				
				
				
			fix: the problem that post cannot be previewed (halo-dev/console#437)
							parent
							
								
									cb1998e52f
								
							
						
					
					
						commit
						dd4bfd02ba
					
				| 
						 | 
				
			
			@ -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