This project is initialized with Ant Design Pro. Follow is the quick guide for how to use.
Install node_modules
:
npm install
or
yarn
Ant Design Pro provides some useful script to help you quick start and build with web project, code style check and test.
Scripts provided in package.json
. It's safe to modify or add additional script:
npm start
npm run build
npm run lint
You can also use script to auto fix some lint error:
npm run lint:fix
npm test
authority.js 中获取到的(localStorage - antd-pro-authority)权限是否和router.js中authority向匹配
* 1.匹配 进入路由页面
* 2.不匹配执行noMatch做跳转
authority.js 默认角色 guest
动态路由设置添加menuModel,BasicLayout引入。参考:https://github.com/ant-design/ant-design-pro/issues/4358