温华:暂时修复打包失败问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Menu } from 'antd'
|
||||
import React, {Fragment, useEffect, useState} from 'react'
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import {Fragment, useEffect, useState} from 'react'
|
||||
import { useSelector } from 'react-redux';
|
||||
import { generateMenu } from '../../permission';
|
||||
import { useLocation, useNavigate } from 'react-router-dom';
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function SideBar() {
|
||||
const navigate = useNavigate()
|
||||
const location = useLocation()
|
||||
const routes: [] = useSelector((store: any)=>store.permission)
|
||||
const dispatch = useDispatch()
|
||||
// const dispatch = useDispatch()
|
||||
const [menuItem, setMenuItem] = useState<Array<any>>([{
|
||||
key: '/',
|
||||
label: '首页',
|
||||
|
||||
Reference in New Issue
Block a user