react admin tp
1.0.0
React-TypeScript background management system project templates, built-in dynamic embedded routing, data Mock, TailwindCSS, night mode, dynamic bread chips, custom format components. EN
It is recommended to use scaffolding template React-TP-CLI
新增环境需要在 scripts 里配置相应指令 cross-env NODE_ENV=(你的环境名)
环境变量文件 你的环境名.config.js .env.你的环境名 即可自动加载
// 动态路由配置参考
GLOBAL_ROUTERS . APP_PAGE ;
// 调用这方法设置你的动态路由配置
store . setDynamicRoutes ( routerConfig ) ;
You need to install ESLint, Prettier, Tailwind CSS Intellisnse plug -in (Wall crack recommendation installation)
Environment variables and packaging configuration dynamic loading and installation project dependence before submit code to keep the project tidy
HOMEPAGE related files and constructive instructions can be deleted
// 没有pnpm的话先安装pnpm
npm i pnpm -g
// 安装依赖
pnpm i
// dev
pnpm start
// pro
pnpm build