|
|
@@ -77,10 +77,10 @@ const BasicTable: {
|
|
|
)
|
|
|
|
|
|
useLayoutEffect(() => {
|
|
|
- if (state.dataSource) {
|
|
|
- redoHeight(state.dataSource)
|
|
|
+ if (state.dataSource || !isUnDef(resetProps.dataSource)) {
|
|
|
+ redoHeight(state.dataSource || resetProps.dataSource)
|
|
|
}
|
|
|
- }, [state.dataSource])
|
|
|
+ }, [state.dataSource, resetProps.dataSource])
|
|
|
|
|
|
/** 增加头部 */
|
|
|
if (mainMenuType) {
|