Created
July 5, 2017 22:34
-
-
Save xmas/c8e32d44f75762a59ebb675fa72b54a3 to your computer and use it in GitHub Desktop.
This file contains 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
axios.post('/query/download', { | |
familyId: this.item.id, | |
queryName: 'test', | |
columnNames : this.columnNames | |
}) | |
.then(function(response) { | |
let blob = new Blob([response.data], { type: 'text/csv' } ) | |
let link = document.createElement('a') | |
link.href = window.URL.createObjectURL(blob) | |
link.download = 'test.csv' | |
link.click() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment