debug: add console logs to PersonDetailView

This commit is contained in:
2026-06-15 02:23:47 +08:00
parent 87cf4ca5b2
commit 9064b5a95d

View File

@@ -150,9 +150,12 @@ const API_KEY = 'muser_68600856036340bcafc01930eb4bd839_1774418104_97221b69'
onMounted(async () => {
const uuid = route.params.uuid as string
console.log('PersonDetailView mounted, uuid:', uuid)
try {
const people: any = await invoke('getPeople', { page: 1, perPage: 1000 })
console.log('getPeople result count:', Array.isArray(people) ? people.length : 'not array')
const found = (Array.isArray(people) ? people : []).find((p: any) => p.identity_uuid === uuid)
console.log('Person found:', !!found, found?.name)
if (found) {
person.value = { ...found, status: found.status || 'confirmed' }
await loadProfile(uuid)