diff --git a/src/scripts/router.ts b/src/scripts/router.ts index d97b299..496a1d7 100644 --- a/src/scripts/router.ts +++ b/src/scripts/router.ts @@ -18,9 +18,6 @@ const routes: Array = [ path: '/about', name: 'About', meta: {title: '关于', nav: true}, - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. component: () => import('../views/About.vue') }, { @@ -54,6 +51,12 @@ const routes: Array = [ meta: {title: '朋友们', navBookmark: 'Others'}, component: () => import('../views/others/Friends.vue') }, + { + path: '/projects', + name: 'Projects', + meta: {title: '我做的', navBookmark: 'Others'}, + component: () => import('../views/others/Projects.vue') + }, { path: '/color', name: 'ColorPicker', diff --git a/src/views/Projects.vue b/src/views/others/Projects.vue similarity index 100% rename from src/views/Projects.vue rename to src/views/others/Projects.vue