22 lines
354 B
JavaScript
22 lines
354 B
JavaScript
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
import Index from '@/components/Index'
|
|
import About from '@/components/About'
|
|
|
|
Vue.use(Router)
|
|
|
|
export default new Router({
|
|
routes: [
|
|
{
|
|
path: '/index',
|
|
name: 'index',
|
|
component: Index
|
|
},
|
|
{
|
|
path: '/about',
|
|
name: 'index',
|
|
component: About
|
|
}
|
|
]
|
|
})
|