修改路由信息

master
liuyx 2 years ago
parent e4ba339b5c
commit 4f2f517d2f

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

Loading…
Cancel
Save