修改上传图片安全验证问题
This commit is contained in:
@@ -235,7 +235,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
|
||||
if (isActive) {
|
||||
getLocation().catch((error) => {
|
||||
console.error('获取位置信息失败:', error);
|
||||
console.warn('获取位置信息失败:', error);
|
||||
});
|
||||
}
|
||||
}, [isActive, showHomeQrcode]);
|
||||
@@ -309,7 +309,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
lastLoadedAreaRef.current = [...currentArea] as [string, string];
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("重新加载数据失败:", error);
|
||||
console.warn("重新加载数据失败:", error);
|
||||
}
|
||||
}, delayMs);
|
||||
prevIsActiveRef.current = isActive;
|
||||
@@ -375,7 +375,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
await updateUserLocation(location.latitude, location.longitude, isFirstCall);
|
||||
hasUpdatedLocationRef.current = true;
|
||||
} catch (error) {
|
||||
console.error("更新用户位置失败:", error);
|
||||
console.warn("更新用户位置失败:", error);
|
||||
}
|
||||
}
|
||||
// 先调用列表接口
|
||||
@@ -462,7 +462,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
await getMatchesData();
|
||||
await fetchGetGamesCount();
|
||||
} catch (error) {
|
||||
console.error("刷新列表失败:", error);
|
||||
console.warn("刷新列表失败:", error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -477,7 +477,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
const { fetchDictionary } = useDictionaryStore.getState();
|
||||
await fetchDictionary();
|
||||
} catch (error) {
|
||||
console.error("初始化字典数据失败:", error);
|
||||
console.warn("初始化字典数据失败:", error);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -616,7 +616,7 @@ const ListPageContent: React.FC<ListPageContentProps> = ({
|
||||
try {
|
||||
await loadMoreMatches();
|
||||
} catch (error) {
|
||||
console.error("加载更多失败:", error);
|
||||
console.warn("加载更多失败:", error);
|
||||
} finally {
|
||||
loadingMoreRef.current = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user