From 010af5ea499086631f1927b817727c24d80036a2 Mon Sep 17 00:00:00 2001 From: John Cleaver Date: Thu, 26 Apr 2018 22:54:17 -0400 Subject: [PATCH] Add new routes. --- src/router/index.js | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index ad862a7..b87fef9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,16 +1,44 @@ import Vue from 'vue' import Router from 'vue-router' import Welcome from '@/components/Welcome' +import Bundles from '@/components/Bundles' +import BundleItems from '@/components/BundleItems' Vue.use(Router) export default new Router({ routes: [ { - path: '/', + path: '/welcome', name: 'Welcome', component: Welcome + }, + { + path: '/', + redirect: { + name: 'Welcome' + } + }, + { + path: '/bundles', + name: 'Bundles', + component: Bundles, + children: [ + { + path: ':id', + name: 'bundle-items', + component: BundleItems + } + ] + }, + { + name: 'Search', + path: '/search' + }, + { + name: 'Inventory', + path: '/inventory' } ], - linkExactActiveClass: 'is-active' + linkActiveClass: 'is-active' })