debug: show uuid and people count on error page
This commit is contained in:
@@ -89,7 +89,11 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</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 v-if="showCandidates" class="ms-modal-overlay show" @click.self="showCandidates = false">
|
||||||
<div class="ms-modal ms-modal-merge">
|
<div class="ms-modal ms-modal-merge">
|
||||||
@@ -134,6 +138,7 @@ const router = useRouter()
|
|||||||
const person = ref<any>(null)
|
const person = ref<any>(null)
|
||||||
const loading = ref(true)
|
const loading = ref(true)
|
||||||
const profile = ref('')
|
const profile = ref('')
|
||||||
|
const peopleCount = ref(0)
|
||||||
const faces = ref<any[]>([])
|
const faces = ref<any[]>([])
|
||||||
const traces = ref<any[]>([])
|
const traces = ref<any[]>([])
|
||||||
const mergedTraces = ref<any[]>([])
|
const mergedTraces = ref<any[]>([])
|
||||||
@@ -154,6 +159,7 @@ onMounted(async () => {
|
|||||||
try {
|
try {
|
||||||
const people: any = await invoke('getPeople', { page: 1, perPage: 1000 })
|
const people: any = await invoke('getPeople', { page: 1, perPage: 1000 })
|
||||||
console.log('getPeople result count:', Array.isArray(people) ? people.length : 'not array')
|
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)
|
const found = (Array.isArray(people) ? people : []).find((p: any) => p.identity_uuid === uuid)
|
||||||
console.log('Person found:', !!found, found?.name)
|
console.log('Person found:', !!found, found?.name)
|
||||||
if (found) {
|
if (found) {
|
||||||
|
|||||||
Reference in New Issue
Block a user