Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
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
web_component
submodule
Commits
d6694c5c
Commit
d6694c5c
authored
May 13, 2020
by
满振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改兼容
parent
58b7b4c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
DataViewReducer.ts
components/dataView-V2/DataViewReducer.ts
+1
-2
No files found.
components/dataView-V2/DataViewReducer.ts
View file @
d6694c5c
...
...
@@ -45,7 +45,7 @@ export const reducer = (state: any, action: any) => {
case
'saveState'
:
return
{
...
state
,
...
action
.
payload
,
...
(
action
.
payload
||
{})
,
}
case
'onResert'
:
return
{
...
...
@@ -68,7 +68,6 @@ export const effect = (reduceArr: any, registerFun: { fetch: Function }) => {
case
'onChangePageNum'
:
newParams
=
await
registerFun
.
fetch
({
pagination
:
{
...
state
.
pagination
,
pageNum
:
payload
.
pageNum
}
})
break
case
'onSearch'
:
newParams
=
await
registerFun
.
fetch
({
searchForm
:
{
...
state
.
searchForm
,
...(
payload
.
searchForm
||
{})
}
})
break
...
...
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