|
@@ -5,12 +5,14 @@ Vue.use(Router)
|
|
|
|
|
|
export const constantRoutes = [
|
|
export const constantRoutes = [
|
|
{
|
|
{
|
|
- path: '/',
|
|
|
|
|
|
+ path: '/home',
|
|
name: 'home',
|
|
name: 'home',
|
|
- component: () => import('@/components/HelloWorld')
|
|
|
|
|
|
+ title: '首页',
|
|
|
|
+ component: () => import('@/views/home/home')
|
|
}, {
|
|
}, {
|
|
path: '/work',
|
|
path: '/work',
|
|
name: 'work',
|
|
name: 'work',
|
|
|
|
+ title: '作业',
|
|
component: () => import('@/views/work/work')
|
|
component: () => import('@/views/work/work')
|
|
}
|
|
}
|
|
]
|
|
]
|