Created
February 5, 2018 11:57
-
-
Save mitrallex/997d05b2ab0816d7f30d8bf42e4acd02 to your computer and use it in GitHub Desktop.
laravel-file-hosting
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
| fetchFile(type, page) { | |
| this.loading = true; | |
| axios.get('files/' + type + '?page=' + page).then(result => { | |
| this.loading = false; | |
| this.files = result.data.data.data; | |
| this.pagination = result.data.pagination; | |
| }).catch(error => { | |
| console.log(error); | |
| this.loading = false; | |
| }); | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment