This commit is contained in:
freedakgmail
2025-11-23 09:13:25 +08:00
parent 81dbf709aa
commit bade25ff26
378 changed files with 769815 additions and 2334 deletions
+10 -1
View File
@@ -28,9 +28,18 @@ export function FamilyTreesList() {
useEffect(() => {
if (session?.user?.id) {
console.log('📋 开始获取家族树列表...')
fetch('/api/trees')
.then(res => res.json())
.then(res => {
console.log('📋 家族树列表响应状态:', res.status)
return res.json()
})
.then(data => {
console.log('📋 家族树列表数据:', {
data,
treesCount: data.trees?.length,
trees: data.trees
})
if (data.trees) {
setTrees(data.trees)
}