摘要: 因react-router中路由配置时,子路由为父级路由+子路由拼接而成,故当实现面包屑时需要根据当前路由获取完整的父子路由链 入参:如 /layout/list/showList 出参:如 ['/layout', '/layout/list', '/layout/list/showList'] i 阅读全文
posted @ 2023-01-03 11:27 王希有 阅读(517) 评论(0) 推荐(0) 编辑
摘要: // antd: 5.1.1 import React from "react"; // 1、自定义图片 // import Icon from '@ant-design/icons'; // import Logo from '@/assets/Logo.png' // import './ind 阅读全文
posted @ 2023-01-03 10:49 王希有 阅读(2479) 评论(0) 推荐(1) 编辑
摘要: 版本: react: 18.2.0 antd:5.1.1 AnchorPage,tsx import React, { useEffect, useState } from 'react'; import { Anchor, Row, Col } from 'antd'; const AnchorP 阅读全文
posted @ 2023-01-03 10:31 王希有 阅读(1213) 评论(0) 推荐(0) 编辑