Skip to content

Commit

Permalink
feat: 删除无用菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangshigui committed Jul 22, 2024
1 parent 064c456 commit eb67597
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
10 changes: 1 addition & 9 deletions src/config/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: liuhua
* @Date: 2023-06-17 17:23:30
* @LastEditors: zhangshigui
* @LastEditTime: 2024-05-29 15:07:40
* @LastEditTime: 2024-07-22 11:41:57
* @Description: 菜单配置(配置由后端返回更加灵活)
*
*/
Expand Down Expand Up @@ -162,14 +162,6 @@ export const menu: MenuItem[] = [
parentId: '7',
target: '_blank'
},
{
id: '72',
title: '智慧气象',
path: '/screen/atmosphere',
roles: ['admin', 'test'],
parentId: '7',
target: '_blank'
},
// 流程图
{
id: '8',
Expand Down
5 changes: 0 additions & 5 deletions src/router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const SearchTable = lazy(() => import('@/views/table/search-table'));
const DragTable = lazy(() => import('@/views/table/darg-table'));
// screen
const ScreenCity = lazy(() => import('@/views/screen/city'));
const ScreenAtmosphere = lazy(() => import('@/views/screen/atmosphere'));
// process
const Process = lazy(() => import('@/views/process'));

Expand Down Expand Up @@ -116,10 +115,6 @@ const AppRouter = () => {
path: '/screen/city',
element: lazyLoad(<ScreenCity />)
},
{
path: '/screen/atmosphere',
element: lazyLoad(<ScreenAtmosphere />)
},
{
path: '*',
element: <NotFound />
Expand Down

0 comments on commit eb67597

Please sign in to comment.