左侧菜单样式

This commit is contained in:
none
2023-03-10 17:21:22 +08:00
parent b585766d84
commit 0a282cf93b
4 changed files with 70 additions and 43 deletions

View File

@@ -6,7 +6,6 @@ import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
import { LoginOutActionCreator } from "../../store/user/userActions";
import avatar from "../../assets/images/commen/avatar.png";
import "../../assets/iconfont/iconfont.css";
export const Header: React.FC = () => {
const dispatch = useDispatch();

View File

@@ -2,6 +2,7 @@
width: 200px;
height: 100%;
background-color: #fff;
.App-logo {
width: 124px;
height: 40px;

View File

@@ -1,10 +1,8 @@
import React, { useEffect } from "react";
import { Menu } from "antd";
//导出路由跳转hooks函数
import { useNavigate, Link, useLocation } from "react-router-dom";
import { useNavigate, useLocation } from "react-router-dom";
import styles from "./index.module.less";
import logo from "../../assets/logo.png";
import "../../assets/iconfont/iconfont.css";
function getItem(label: any, key: any, icon: any, children: any, type: any) {
return {
@@ -19,7 +17,7 @@ const items = [
getItem(
"首页概览",
"/",
<i className="iconfont icon-icon-home" />,
<i className={`iconfont icon-icon-home`} />,
null,
null
),