Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChadTaljaardt/cba87b5340fd34672e58bcdf9dbde7b0 to your computer and use it in GitHub Desktop.
Save ChadTaljaardt/cba87b5340fd34672e58bcdf9dbde7b0 to your computer and use it in GitHub Desktop.
download($item) {
axios.get('/api/message/shares/download/' + this.$route.params.id + '/' + $item['file'])
.then(response => {
alert(response.data);
}).catch(e => {
console.log(e);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment