Skip to content

Statfine/umi-demo

Repository files navigation

Ant Design Pro

This project is initialized with Ant Design Pro. Follow is the quick guide for how to use.

Environment Prepare

Install node_modules:

npm install

or

yarn

Provided Scripts

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:

Start project

npm start

Build project

npm run build

Check code style

npm run lint

You can also use script to auto fix some lint error:

npm run lint:fix

Test code

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