Files
photo-live/apps/admin/src/router/modules/albums.ts
T
2026-09-18 12:33:46 +08:00

41 lines
974 B
TypeScript

/**
* 相册管理路由(P1b Task 10:列表 + 详情——详情含照片/成员/分类管理与
* banner 上传,isHide 不进侧边菜单,activePath 保持列表高亮)
*/
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
}
},
{
path: 'detail/:albumId',
name: 'AlbumsDetail',
component: '/albums/detail',
meta: {
title: 'menus.albums.detail',
icon: 'ri:gallery-line',
isHide: true,
keepAlive: false,
activePath: '/albums/manage'
}
}
]
}