显示空状态
This commit is contained in:
@@ -385,7 +385,9 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleRefresh = async () => {
|
const handleRefresh = async () => {
|
||||||
|
if (refreshing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setRefreshing(true);
|
setRefreshing(true);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ export const useListStore = create<TennisStore>()((set, get) => ({
|
|||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setListData({
|
setListData({
|
||||||
error: "-1",
|
error: "",
|
||||||
data: [],
|
data: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
count: 0,
|
count: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user