温华:暂时修复打包失败问题

This commit is contained in:
wenhua
2023-11-01 11:30:19 +08:00
parent 1e768b147f
commit 23cebffc12
22 changed files with 38 additions and 40 deletions

View File

@@ -1,4 +1,3 @@
import React from "react";
import '../../assets/styles/appmain.scss'
import { Outlet } from "react-router-dom";

View File

@@ -1,4 +1,3 @@
import React, { useEffect } from "react";
import { Layout } from 'antd'
import { useSelector } from 'react-redux'
import SideBar from "./sidebar";

View File

@@ -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';

View File

@@ -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: '首页',