摘要: .list_table{ width: 100%; background: #fff; height: 100%; overflow-y: scroll; &::-webkit-scrollbar { /*滚动条整体样式*/ width: 10px; height: 100%; background 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(31) 评论(0) 推荐(0)
摘要: 布局设置完毕 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(24) 评论(0) 推荐(0)
摘要: import React, { useState, useEffect } from 'react' import { Breadcrumb } from 'antd'; import { HomeOutlined } from '@ant-design/icons'; import { useLo 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(36) 评论(0) 推荐(0)
摘要: const [defaultKey, setDefaultKey] = useState(""); const navigate = useNavigate(); const location=useLocation() const handleClick = (e) => { navigate(" 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(28) 评论(0) 推荐(0)
摘要: const navigate = useNavigate(); const handleClick = (e) => { navigate("/" + e.key); setDefaultKey(e.key); }; 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(28) 评论(0) 推荐(0)
摘要: import React, { useEffect, useState } from 'react' import { Menu } from 'antd'; import { ReadOutlined, EditOutlined, DatabaseOutlined } from '@ant-des 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(94) 评论(0) 推荐(0)
摘要: // 退出登录 const logout = () => { message.success('退出成功,即将返回登录页') localStorage.clear(); // 清除localStorage中的数据 setTimeout(() => navigate('/login'), 1500) 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(25) 评论(0) 推荐(0)
摘要: // 模拟componentDidMount useEffect(() => { let username1 = localStorage.getItem('username') let avatar1 = localStorage.getItem('avatar') if (username1) 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(24) 评论(0) 推荐(0)
摘要: 直接给a标签加高度 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(37) 评论(0) 推荐(0)
摘要: import React, { useEffect, useState } from 'react' import logoImg from '../assets/logo.png' import { Menu, Dropdown, message } from 'antd'; import { C 阅读全文
posted @ 2022-08-20 21:55 前端导师歌谣 阅读(54) 评论(0) 推荐(0)