温华:暂时修复打包失败问题
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import '../../assets/styles/appmain.scss'
|
||||
import { Outlet } from "react-router-dom";
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React, { useEffect } from "react";
|
||||
import { Layout } from 'antd'
|
||||
import { useSelector } from 'react-redux'
|
||||
import SideBar from "./sidebar";
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
MenuFoldOutlined,
|
||||
MenuUnfoldOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import React from 'react'
|
||||
|
||||
import { useSelector, useDispatch } from 'react-redux'
|
||||
import { setCollapsed } from '../../stores/sidebar';
|
||||
|
||||
|
||||
@@ -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