# react-admin-2301 **Repository Path**: connerljlx_admin/react-admin-2301 ## Basic Information - **Project Name**: react-admin-2301 - **Description**: 2301班react后台管理项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-06-20 - **Last Updated**: 2023-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 搭建 + 基础配置 配置路径别名 等等 + axios二次封装 环境变量 保存 请求 baseURL 配置中反向代理 + 安装 ui组件库 # 处理日期格式 js 库 moment.js dayjs # 生成pdf 预览 打印 # history 插件 解决 react 在 非组件js文件中 得到 路由 相关对象 + 安装 ```js npm i history -S ``` + 初始化 路由实例 ```js import { createHashHistory } from 'history' // 或 import { createBrowserHistory } from 'history' const history = createHashHistory() // 或 const history = createBrowserHistory() ``` # react 路由懒加载 React.lazy结合 Suspense