优化
This commit is contained in:
@@ -29,6 +29,7 @@ const ListContainer = (props) => {
|
||||
collapse = false,
|
||||
defaultShowNum,
|
||||
evaluateFlag,
|
||||
listLoadErrorHeight,
|
||||
} = props;
|
||||
const timerRef = useRef<NodeJS.Timeout | null>(null);
|
||||
const loadingStartTimeRef = useRef<number | null>(null);
|
||||
@@ -132,7 +133,7 @@ const ListContainer = (props) => {
|
||||
if (hasTestInLastMonth) {
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
if (list.length <= 2) {
|
||||
return [...list, { type: "evaluateCard" }];
|
||||
}
|
||||
@@ -156,6 +157,7 @@ const ListContainer = (props) => {
|
||||
btnText={btnText}
|
||||
btnImg={btnImg}
|
||||
text={emptyText || "暂无数据"}
|
||||
height={listLoadErrorHeight || ""}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user