# my-admin **Repository Path**: huyu_code/my-admin ## Basic Information - **Project Name**: my-admin - **Description**: 使用react+antd开发一个后台管理系统 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-31 - **Last Updated**: 2022-04-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # my-admin #### 介绍 使用react+antd开发一个后台管理系统 ## 注意 2种定义state的方式不要混用 ## 打包问题 打包后,默认可以看见源码,即webpack是sourcemap模式。 修改: 根目录创建.env文件 ```javascript GENERATE_SOURCEMAP=false ``` ### 实现类似vuekeeplive的功能 使用react-keepalive-router ### 可能还要安装一下包 ```shell npm install tsparticles --save ``` ### 部署问题 使用pushstate-server启动react打包文件 使用pm2管理,运行build文件 ```shell pm2 start server.js ``` ### 存在的问题 antd-theme-webpack-plugin用于切换主题,当修改项目内的less文件 后,热更新阶段出现内存暴涨的问题,会导致项目直接卡死。问题目前无法修复 PS:地址: ```shell https://github.com/mzohaibqc/antd-theme-webpack-plugin/issues/98 https://github.com/mzohaibqc/antd-theme-webpack-plugin/issues/87 ``` 其作者给出的解决方案是使用旧的Antd,如antd3