data moved into asyncData()

This commit is contained in:
ManjaroOne666 2019-02-04 12:00:30 +00:00
parent 37eb527ecb
commit 5606c3d5ee
1 changed files with 83 additions and 81 deletions

View File

@ -13,8 +13,16 @@ export default {
GalleryPage GalleryPage
}, },
data() { head () {
return { return {
title: 'My Galleries',
// TODO meta - hid, name, content
}
},
asyncData () {
return new Promise((resolve, reject) => {
resolve({
galleries: [ galleries: [
{ title: 'Portraits', { title: 'Portraits',
id: 0, id: 0,
@ -90,15 +98,9 @@ export default {
{ id: 3, thumbUrl: 'https://via.placeholder.com/400x300', url: 'https://via.placeholder.com/1920x1080' } { id: 3, thumbUrl: 'https://via.placeholder.com/400x300', url: 'https://via.placeholder.com/1920x1080' }
] ]
}, },
] // galleries end ]
} })
}, })
head () {
return {
title: 'My Galleries',
// TODO meta - hid, name, content
}
}, },
} }