debug: show uuid and people count on error page

This commit is contained in:
2026-06-15 02:26:20 +08:00
parent 9064b5a95d
commit 5c2dbe46e5

View File

@@ -89,7 +89,11 @@
</button>
</div>
</template>
<div v-else class="empty">Person not found</div>
<div v-else class="empty">
Person not found: {{ route.params.uuid }}
<br><br>
<span style="font-size:12px;color:#9aa0a6;">People loaded: {{ peopleCount }}</span>
</div>
<div v-if="showCandidates" class="ms-modal-overlay show" @click.self="showCandidates = false">
<div class="ms-modal ms-modal-merge">
@@ -134,6 +138,7 @@ const router = useRouter()
const person = ref<any>(null)
const loading = ref(true)
const profile = ref('')
const peopleCount = ref(0)
const faces = ref<any[]>([])
const traces = ref<any[]>([])
const mergedTraces = ref<any[]>([])
@@ -154,6 +159,7 @@ onMounted(async () => {
try {
const people: any = await invoke('getPeople', { page: 1, perPage: 1000 })
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)
console.log('Person found:', !!found, found?.name)
if (found) {