# react-admin-2207 **Repository Path**: connerljlx_admin/react-admin-2207 ## Basic Information - **Project Name**: react-admin-2207 - **Description**: 2207班react的后台管理项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-29 - **Last Updated**: 2023-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 安装依赖 ```js npm i react-router-dom @reduxjs/toolkit axios antd -S ``` # antd 蚂蚁金服 安装 ```js npm i antd -S ``` # 处理日期格式插件 dayjs moment.js # echarts 列数据问题 const data = [ { genre: 'Sports', sold: 275 }, { genre: 'Strategy', sold: 115 }, { genre: 'Action', sold: 120 }, { genre: 'Shooter', sold: 350 }, { genre: 'Other', sold: 150 } ]; ```js const obj = { genre: ['Sports','Strategy','Action', 'Shooter', 'Other' ], sold: [275, 115, 120,350, 150] } ``` function row2Col(){} # 响应式布局 单位 768 小于 768 手机 xs 992 768和992之间 pad sm 大于992 pc桌面 md # cookie.js # react 路由操作 在 非 组件 的js文件中如何操作路由 history ```js npm i history -S import { createHashHistory } from 'history' import { createBrowserHistory } from 'history' const history = createHashHistory() / createBrowserHistory() ```