|
@@ -6,7 +6,7 @@ import { connect } from 'dva'
|
|
|
import React, { useEffect, useState } from 'react'
|
|
import React, { useEffect, useState } from 'react'
|
|
|
import SvgIcon from '@/components/SvgIcon'
|
|
import SvgIcon from '@/components/SvgIcon'
|
|
|
import useAutoTable from '@/hooks/useAutoTable'
|
|
import useAutoTable from '@/hooks/useAutoTable'
|
|
|
-import consts from '@/basic/consts'
|
|
|
|
|
|
|
+import consts from '@/consts'
|
|
|
|
|
|
|
|
const Contact = props => {
|
|
const Contact = props => {
|
|
|
const [x, y] = useAutoTable(props.collapsed)
|
|
const [x, y] = useAutoTable(props.collapsed)
|
|
@@ -263,7 +263,7 @@ const Contact = props => {
|
|
|
show: false
|
|
show: false
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- const initData = (page, size) => {
|
|
|
|
|
|
|
+ const initData = (page = 1, size = consts.PAGE_SIZE) => {
|
|
|
const { dispatch } = props
|
|
const { dispatch } = props
|
|
|
dispatch({
|
|
dispatch({
|
|
|
type: 'contact/fetch',
|
|
type: 'contact/fetch',
|