# react-pc
**Repository Path**: codinglin/react-pc
## Basic Information
- **Project Name**: react-pc
- **Description**: 基于 react hooks + mobx + antd + echarts 的 pc 端项目
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2023-02-16
- **Last Updated**: 2023-09-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: React, mobx, Ant-Design, Echarts
## README
## React Hooks + Mobx + Antd + Echarts 构建 PC 端项目
- 安装依赖(推荐使用 yarn)
```
yarn
或
yarn install
```
- 运行项目
```
yarn start
```
- 登录验证
登录调用后端接口,手机号要符合规范(使用正则进行校验),验证码必须是 `246810`
- 遇到的问题(antd 版本问题)
报错:[antd: Menu] `children` will be removed in next major version. Please use `items` instead.
- 解决方法
定义正确属性的对象,并在 `Menu` 组件中使用 `items` 属性,
```js
const MenuList = [
{ key: "1", label: "数据概览", icon: