update 修改页面名称为index
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import home from '@/components/home'
|
||||
import index from '@/components/index'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
export default new Router({
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: home
|
||||
path: '/index',
|
||||
name: 'index',
|
||||
component: index
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user