debug: add more console logs to PersonDetailView

This commit is contained in:
2026-06-15 02:34:46 +08:00
parent 5c2dbe46e5
commit 41ac3b20f4

View File

@@ -157,7 +157,9 @@ onMounted(async () => {
const uuid = route.params.uuid as string
console.log('PersonDetailView mounted, uuid:', uuid)
try {
console.log('Calling getPeople with uuid:', uuid)
const people: any = await invoke('getPeople', { page: 1, perPage: 1000 })
console.log('getPeople raw result:', JSON.stringify(people).slice(0, 200))
console.log('getPeople result count:', Array.isArray(people) ? people.length : 'not array')
peopleCount.value = Array.isArray(people) ? people.length : 0
const found = (Array.isArray(people) ? people : []).find((p: any) => p.identity_uuid === uuid)