feat: basic routing and fav nav

This commit is contained in:
2018-09-13 19:56:44 -07:00
parent 1c2df7733d
commit 3b39345fa6
8 changed files with 283 additions and 203 deletions

View File

@@ -19,8 +19,19 @@ const router = new Router({
routes: [
{
path: '/',
name: 'home',
component: () => import(/* webpackChunkName: "homeapp" */ './pages/Home.vue'),
component: () => import(/* webpackChunkName: "Home" */ './pages/Home.vue'),
children: [
{
path: '',
name: 'search',
component: () => import(/* webpackChunkName: "Search" */ './pages/Search.vue'),
},
{
path: 'favorites',
name: 'favorites',
component: () => import(/* webpackChunkName: "Favorites" */ './pages/Favorites.vue'),
},
],
},
],
});