Create Vehicle page layout

This commit is contained in:
2020-12-21 23:45:00 +01:00
parent add48e09a8
commit 5df1f1769e
4 changed files with 78 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ export default {
fetchOnServer: false,
async fetch() {
const { store } = this.$nuxt.context;
if (!store.state.films.list.length) await store.dispatch("films/getList");
if (!store.state.people.list.length) await store.dispatch("people/getList");
if (!store.state.vehicles.list.length)
await store.dispatch("vehicles/getList");
@@ -42,4 +43,8 @@ html {
box-sizing: border-box;
margin: 0;
}
main {
min-height: calc(100vh - 64px * 2);
}
</style>