1
0
mirror of https://github.com/kihashi/stardew_community_checklist.git synced 2025-10-19 08:03:17 +00:00

Add new routes.

This commit is contained in:
John Cleaver 2018-04-26 22:54:17 -04:00
parent 5f7dcaa4c3
commit 010af5ea49

View File

@ -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'
})