Created
November 22, 2019 18:58
-
-
Save CristalT/5aaafff7945296e2bc736d731f87b04f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await this.$axios({ | |
url: 'apiurl', | |
method: 'POST', | |
responseType: 'blob', | |
data: payload | |
}).then(res => { | |
const fileURL = URL.createObjectURL(res.data); | |
window.open(fileURL); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment