Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
fe99d275
Commit
fe99d275
authored
Dec 10, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 项目开发文档
parent
ac77d1f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
README.md
README.md
+7
-7
No files found.
README.md
View file @
fe99d275
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment