|
|
@@ -17,7 +17,6 @@ const Notification = () => {
|
|
|
pageSize: 10,
|
|
|
total: 0
|
|
|
})
|
|
|
- setState()
|
|
|
// const loadMoreData = () => {
|
|
|
// if (state.message.length >= 500) {
|
|
|
// setState({ hasMore: false })
|
|
|
@@ -42,7 +41,7 @@ const Notification = () => {
|
|
|
useEffect(() => {
|
|
|
initData()
|
|
|
}, [])
|
|
|
- console.log(state.message.length)
|
|
|
+ // console.log(state.message.length)
|
|
|
const loadMoreData = () => {
|
|
|
if (state.total === state.message.length) {
|
|
|
return
|