mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update DiscoverComponent
This commit is contained in:
parent
4ca8bf1e34
commit
e67714eafc
1 changed files with 1 additions and 6 deletions
|
@ -64,7 +64,7 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config: {},
|
config: window.App.config,
|
||||||
posts: {},
|
posts: {},
|
||||||
trending: {},
|
trending: {},
|
||||||
categories: {},
|
categories: {},
|
||||||
|
@ -93,11 +93,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchData() {
|
fetchData() {
|
||||||
axios.get('/api/v2/config')
|
|
||||||
.then((res) => {
|
|
||||||
let data = res.data;
|
|
||||||
this.config = data;
|
|
||||||
});
|
|
||||||
axios.get('/api/v2/discover/posts')
|
axios.get('/api/v2/discover/posts')
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
|
|
Loading…
Reference in a new issue