diff --git a/src/compenents/header/index.tsx b/src/compenents/header/index.tsx
index 3a4d7cd..1ab6b5c 100644
--- a/src/compenents/header/index.tsx
+++ b/src/compenents/header/index.tsx
@@ -6,7 +6,11 @@ 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 { PoweroffOutlined, UnlockOutlined } from "@ant-design/icons";
+import { createFromIconfontCN } from "@ant-design/icons";
+
+const IconFont = createFromIconfontCN({
+ scriptUrl: "//at.alicdn.com/t/c/font_3943555_yvbihmb40xn.js",
+});
export const Header: React.FC = () => {
const dispatch = useDispatch();
@@ -25,12 +29,12 @@ export const Header: React.FC = () => {
{
label: "修改密码",
key: "change_password",
- icon: ,
+ icon: ,
},
{
label: "退出登录",
key: "login_out",
- icon: ,
+ icon: ,
},
];
return (
diff --git a/src/compenents/left-menu/index.tsx b/src/compenents/left-menu/index.tsx
index 65e58f7..a158252 100644
--- a/src/compenents/left-menu/index.tsx
+++ b/src/compenents/left-menu/index.tsx
@@ -1,15 +1,15 @@
import React, { useEffect } from "react";
-import {
- MailOutlined,
- SettingOutlined,
- AppstoreOutlined,
-} from "@ant-design/icons";
+import { createFromIconfontCN } from '@ant-design/icons';
import { Menu } from "antd";
//导出路由跳转hooks函数
import { useNavigate, Link, useLocation } from "react-router-dom";
import styles from "./index.module.less";
import logo from "../../assets/logo.png";
+const IconFont = createFromIconfontCN({
+ scriptUrl: '//at.alicdn.com/t/c/font_3943555_yvbihmb40xn.js',
+});
+
function getItem(label: any, key: any, icon: any, children: any, type: any) {
return {
key,
@@ -20,12 +20,12 @@ function getItem(label: any, key: any, icon: any, children: any, type: any) {
};
}
const items = [
- getItem("首页概览", "/", , null, null),
- getItem("分类管理", "/resource-category", , null, null),
+ getItem("首页概览", "/", , null, null),
+ getItem("分类管理", "/resource-category", , null, null),
getItem(
"资源管理",
"3",
- ,
+ ,
[
getItem("视频", "/videos", null, null, null),
getItem("图片", "/images", null, null, null),
@@ -35,14 +35,14 @@ const items = [
getItem(
"课程中心",
"4",
- ,
+ ,
[getItem("线上课", "/course", null, null, null)],
null
),
getItem(
"学员管理",
"5",
- ,
+ ,
[
getItem("学员", "/member", null, null, null),
getItem("部门", "/department", null, null, null),
@@ -52,7 +52,7 @@ const items = [
getItem(
"系统设置",
"6",
- ,
+ ,
[
getItem("管理人员", "/system/administrator", null, null, null),
getItem("系统配置", "/system/index", null, null, null),