fix: add status field to PersonInfo struct

This commit is contained in:
2026-06-15 04:10:40 +08:00
parent 0dfa80918f
commit fb47acf67b
2 changed files with 8 additions and 4 deletions

View File

@@ -164,11 +164,11 @@ onMounted(async () => {
console.log('PeopleView: calling getPeople...')
const result: any = await invoke('getPeople', { page: 1, perPage: 1000 })
console.log('PeopleView: getPeople result:', Array.isArray(result) ? result.length : typeof result)
people.value = (Array.isArray(result) ? result : []).map((p: any) => ({
...p,
status: p.status || 'confirmed'
}))
people.value = Array.isArray(result) ? result : []
console.log('PeopleView: people.value length:', people.value.length)
if (people.value.length > 0) {
console.log('PeopleView: first person:', JSON.stringify(people.value[0]))
}
} catch (e) {
console.error('Failed to load people:', e)
} finally {