fix: People default status to confirmed

This commit is contained in:
2026-06-14 23:29:50 +08:00
parent 0a3619243e
commit 2544ab36b5

View File

@@ -222,7 +222,10 @@ const skippedPeople = computed(() => {
onMounted(async () => { onMounted(async () => {
try { try {
const result: any = await invoke('get_people', { page: 1, perPage: 1000 }) const result: any = await invoke('get_people', { page: 1, perPage: 1000 })
people.value = Array.isArray(result) ? result : [] people.value = (Array.isArray(result) ? result : []).map((p: any) => ({
...p,
status: p.status || 'confirmed'
}))
} catch (e) { } catch (e) {
console.error('Failed to load people:', e) console.error('Failed to load people:', e)
} finally { } finally {