|
|
|
@ -3,23 +3,28 @@ import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
|
const routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
component: () => import('@/views/home/Home.vue')
|
|
|
|
|
component: () => import('@/views/home/Home.vue'),
|
|
|
|
|
name: '首页'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/tags',
|
|
|
|
|
component: () => import('@/views/tag/Tag.vue')
|
|
|
|
|
component: () => import('@/views/tag/Tag.vue'),
|
|
|
|
|
name: '标签'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/categories',
|
|
|
|
|
component: () => import('@/views/category/Category.vue')
|
|
|
|
|
component: () => import('@/views/category/Category.vue'),
|
|
|
|
|
name: '分类'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/archives',
|
|
|
|
|
component: () => import('@/views/archive/Archive.vue')
|
|
|
|
|
component: () => import('@/views/archive/Archive.vue'),
|
|
|
|
|
name: '归档'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/about',
|
|
|
|
|
component: () => import('@/views/about/About.vue')
|
|
|
|
|
component: () => import('@/views/about/About.vue'),
|
|
|
|
|
name: '关于我'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/articles/:articleId',
|
|
|
|
|