feat: 添加登录功能与文章编辑功能
refactor: 重构API服务与全局状态管理 style: 优化UI样式与布局 fix: 修复文章列表与详情页的显示问题 docs: 更新类型定义与注释 chore: 更新依赖包与配置文件
This commit is contained in:
@@ -6,6 +6,8 @@ import NonsensePage from '../views/nonsense.vue'
|
||||
import MessageBoardPage from '../views/messageboard.vue'
|
||||
import AboutMePage from '../views/aboutme.vue'
|
||||
import ArticleContentPage from '../views/articlecontents.vue'
|
||||
import LoginPage from '../views/login.vue'
|
||||
import ArticleSavePage from '../views/articlesave.vue'
|
||||
|
||||
/**
|
||||
* 路由配置数组
|
||||
@@ -65,12 +67,28 @@ const routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/article/:url',
|
||||
path: '/article',
|
||||
name: 'articleContent',
|
||||
component: ArticleContentPage,
|
||||
meta: {
|
||||
title: '文章详情'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: LoginPage,
|
||||
meta: {
|
||||
title: '登录'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/articlesave',
|
||||
name: 'articlesave',
|
||||
component: ArticleSavePage,
|
||||
meta: {
|
||||
title: '保存文章'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user