Commit fe99d275 authored by 张烨's avatar 张烨

docs: 项目开发文档

parent ac77d1f6
......@@ -54,7 +54,7 @@ git commit -m 'fix: 修复了一个bug'
如果用户有`LOGIN`权限时,则展示url匹配的路由页面,否则跳转到登录页
用户的权限是在登录时调用`setAuthority`存储到一个对象中的,详见[登录页](./pages/user/../../src/pages/user/login/index.js),[setAuthority](./src/utils/authority.js)
用户的权限是在登录时调用`setAuthority`存储到一个对象中的,详见[登录页](./src/pages/user/login/index.js),[setAuthority](./src/utils/authority.js)
## 路由配置
路由配置详见[routes/config.js](./src/routes/config.js)
......@@ -81,11 +81,11 @@ export default {
`authority`属性用来进行权限控制,除了常见的路由配置属性,其他属性将作为`props`被传递到组件内部
## redux
引入[appConnector](./container/../src/containers/App/store/index.js)包裹一下自己的组件,即可获取redux里面的值,包括`userMode`,`token`
引入[appConnector](./src/containers/App/store/index.js)包裹一下自己的组件,即可获取redux里面的值,包括`userMode`,`token`
## 常见组件封装
1. [图片库](./components/../src/components/Upload/index.tsx)
2. [人员/角色选择器](./components/../src/components/CheckGroup/index.jsx)
3. [展开控制树](./components/../src/components/ExpendableTree/index.js)
4. [基础表单](./components/../src/components/BaseForm/index.js)
\ No newline at end of file
1. [图片库](./src/components/Upload/index.tsx)
2. [人员/角色选择器](./src/components/CheckGroup/index.jsx)
3. [展开控制树](./src/components/ExpendableTree/index.js)
4. [基础表单](./src/components/BaseForm/index.js)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment