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
c6181957
Commit
c6181957
authored
Apr 12, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改replacePageNum回调
parent
cd9ab746
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.js
components/DataView/index.js
+2
-2
No files found.
components/DataView/index.js
View file @
c6181957
...
...
@@ -25,7 +25,7 @@ import { SIFT_TYPE } from '@/utils/enum';
import
storage
from
'@/utils/storage'
;
/* eslint-disable react/sort-comp */
// 关闭下划线变量检测 // 关闭方法排序检测 // 多维数组降维成一维数组
/**
*
*
* @param {initView} fun 用于数据初始化之后的数据处理,每个自控可单独处理回调
*/
/* eslint-disable no-underscore-dangle */
...
...
@@ -300,7 +300,7 @@ export default class DataView extends React.Component {
async
componentDidMount
()
{
await
this
.
getSiftData
();
await
this
.
initView
();
replacePageNum
(
'pageNum'
,
this
.
state
.
current
,
this
.
fetchPa
ge
);
// 当url里面有pageNum参数时,获取url里面的参数进行请求
replacePageNum
(
'pageNum'
,
this
.
state
.
current
,
this
.
state
.
pagination
.
onChan
ge
);
// 当url里面有pageNum参数时,获取url里面的参数进行请求
}
componentWillReceiveProps
(
nextProps
)
{
...
...
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