# react管理系统 **Repository Path**: jiely007/react-management-system ## Basic Information - **Project Name**: react管理系统 - **Description**: 升学react 后台管理系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-22 - **Last Updated**: 2022-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## day01 ico 图标下载 https://www.easyicon.net/ antd 的使用 1 安装 yarn add antd@3.26.19 按需引入 antd 1 yarn add react-app-rewired customize-cra 2 yarn add babel-plugin-import antd 自定义主题颜色 1 yarn add less less-loader 2 修改配置文件 config-overrides.js 解决 新版本中 antd 自定义主题报错的问题 react antd报错options has an unknown property modifyVars 报错问题 https://blog.csdn.net/weixin_44927460/article/details/106622263 https://github.com/arackaf/customize-cra https://github.com/arackaf/customize-cra/issues/253 react-router-dom 的基本使用 样式重置 1 public / css引入 resetmini.css (https://github.com/jgthms/minireset.css/blob/master/minireset.css) 2 index.html 引入 // 登录逻辑 // 1 先获取用户登录 的用户名与密码 // 2 发送请求 获取 token // 2.1 如果成功 将token 交给redux管理 先将数据存储到本地缓存 然后 触发 action 跳转到admin 页面 // 2.2 如果失败 给出提示 // 3 然后进入admin 首先先从 本地缓存里面 获取个人信息 然后更新信息 作为admin的初始 state 数据 // 4 退出 清除掉 本地缓存里面的个人信息以及token 以及 redux 里面的所有状态恢复到初始化 然后跳转到login