feat: 添加Pinia全局状态管理并重构路由逻辑

添加Pinia作为全局状态管理工具,重构路由参数传递方式
移除URL中的动态参数,改为通过Pinia store传递数据
优化导航菜单样式和交互效果,修复路由激活状态问题
新增全局状态管理示例文档,说明基础使用方法
调整页面布局和样式,提升用户体验
This commit is contained in:
qingfeng1121
2025-10-20 11:59:53 +08:00
parent 02d17d7260
commit b042e2a511
12 changed files with 525 additions and 90 deletions

View File

@@ -32,11 +32,11 @@ const routes = [
meta: { title: '首页' },
children: [
{
path: 'aericletype/:type',
path: 'aericletype',
name: 'homeByType'
},
{
path: 'aericletitle/:title',
path: 'aericletitle',
name: 'homeByTitle'
}
]