Merge branch 'feature/juguohong/20250816'
This commit is contained in:
@@ -13,6 +13,7 @@ import { useRef, useEffect } from "react";
|
||||
const ListContainer = (props) => {
|
||||
const {
|
||||
loading,
|
||||
isShowNoData,
|
||||
data = [],
|
||||
error,
|
||||
reload,
|
||||
@@ -84,7 +85,7 @@ const ListContainer = (props) => {
|
||||
// 渲染列表
|
||||
const renderList = (list) => {
|
||||
// 请求数据为空
|
||||
if (!loading && (!list || list?.length === 0)) {
|
||||
if (isShowNoData) {
|
||||
return <ListLoadError reload={reload} errorImg={errorImg} btnText={btnText} btnImg={btnImg} text={emptyText || "暂无数据"} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user