2026-09-18 11:47:32 +08:00
|
|
|
/**
|
2026-09-18 12:33:46 +08:00
|
|
|
* 相册管理路由(P1b Task 10:列表 + 详情——详情含照片/成员/分类管理与
|
|
|
|
|
* banner 上传,isHide 不进侧边菜单,activePath 保持列表高亮)
|
2026-09-18 11:47:32 +08:00
|
|
|
*/
|
|
|
|
|
import { AppRouteRecord } from '@/types/router'
|
|
|
|
|
|
|
|
|
|
export const albumsRoutes: AppRouteRecord = {
|
|
|
|
|
name: 'Albums',
|
|
|
|
|
path: '/albums',
|
|
|
|
|
component: '/index/index',
|
|
|
|
|
meta: {
|
|
|
|
|
title: 'menus.albums.title',
|
|
|
|
|
icon: 'ri:gallery-line'
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'manage',
|
|
|
|
|
name: 'AlbumsManage',
|
|
|
|
|
component: '/albums/manage',
|
|
|
|
|
meta: {
|
|
|
|
|
title: 'menus.albums.manage',
|
|
|
|
|
icon: 'ri:gallery-upload-line',
|
|
|
|
|
keepAlive: false,
|
|
|
|
|
fixedTab: true
|
|
|
|
|
}
|
2026-09-18 12:33:46 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'detail/:albumId',
|
|
|
|
|
name: 'AlbumsDetail',
|
|
|
|
|
component: '/albums/detail',
|
|
|
|
|
meta: {
|
|
|
|
|
title: 'menus.albums.detail',
|
|
|
|
|
icon: 'ri:gallery-line',
|
|
|
|
|
isHide: true,
|
|
|
|
|
keepAlive: false,
|
|
|
|
|
activePath: '/albums/manage'
|
|
|
|
|
}
|
2026-09-18 11:47:32 +08:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|