Skip to content

Commit cdb2e1b

Browse files
committed
refactor: 移除相册相关组件和路由
- 删除 Album 组件及其样式文件,简化代码结构。 - 从 RouteList 和 Sidebar 组件中移除相册管理相关的路由和链接,提升代码可读性和维护性。
1 parent fd91f82 commit cdb2e1b

File tree

6 files changed

+0
-1365
lines changed

6 files changed

+0
-1365
lines changed

src/components/RouteList/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import Draft from '@/pages/draft';
2222
import Decycle from '@/pages/decycle';
2323
import Record from '@/pages/record';
2424
import Oss from '@/pages/oss';
25-
import Album from '@/pages/album';
2625
import Assistant from '@/pages/assistant';
2726
import Config from '@/pages/config';
2827

@@ -52,7 +51,6 @@ export default () => {
5251
{ path: '/wall', title: '评论管理', component: <Wall /> },
5352
{ path: '/web', title: '网站管理', component: <Web /> },
5453
{ path: '/swiper', title: '轮播图管理', component: <Swiper /> },
55-
{ path: '/album', title: '相册管理', component: <Album /> },
5654
{ path: '/footprint', title: '足迹管理', component: <Footprint /> },
5755
{ path: '/storage', title: '存储管理', component: <Oss /> },
5856
{ path: '/setup', title: '项目配置', component: <Setup /> },

src/components/Sidebar/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,6 @@ const Sidebar = ({ sidebarOpen, setSidebarOpen }: SidebarProps) => {
173173
path: 'web',
174174
name: '网站管理',
175175
},
176-
{
177-
to: '/album',
178-
path: 'album',
179-
name: '相册管理',
180-
},
181176
{
182177
to: '/swiper',
183178
path: 'swiper',

src/pages/Album/index.scss

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)