1
0
Fork 0

Update DiscoverComponent

This commit is contained in:
Daniel Supernault 2019-08-04 23:02:02 -06:00
parent 4ca8bf1e34
commit e67714eafc
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 6 deletions

View File

@ -64,7 +64,7 @@
export default {
data() {
return {
config: {},
config: window.App.config,
posts: {},
trending: {},
categories: {},
@ -93,11 +93,6 @@ export default {
},
fetchData() {
axios.get('/api/v2/config')
.then((res) => {
let data = res.data;
this.config = data;
});
axios.get('/api/v2/discover/posts')
.then((res) => {
let data = res.data;