fix: invoke command names camelCase
This commit is contained in:
@@ -168,7 +168,7 @@ onMounted(async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
async function loadProfile(uuid: string) {
|
async function loadProfile(uuid: string) {
|
||||||
try { profile.value = await invoke('get_identity_profile', { uuid }) } catch {}
|
try { profile.value = await invoke('getIdentityProfile', { uuid }) } catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadFaces(uuid: string) {
|
async function loadFaces(uuid: string) {
|
||||||
@@ -242,7 +242,7 @@ async function confirmDelete() {
|
|||||||
async function bindCandidate(c: any) {
|
async function bindCandidate(c: any) {
|
||||||
if (!person.value) return
|
if (!person.value) return
|
||||||
try {
|
try {
|
||||||
await invoke('bind_face', { uuid: person.value.identity_uuid, faceId: String(c.id), fileUuid: c.file_uuid })
|
await invoke('bindFace', { uuid: person.value.identity_uuid, faceId: String(c.id), fileUuid: c.file_uuid })
|
||||||
showCandidates.value = false
|
showCandidates.value = false
|
||||||
await loadFaces(person.value.identity_uuid)
|
await loadFaces(person.value.identity_uuid)
|
||||||
} catch (e) { console.error('Bind failed:', e) }
|
} catch (e) { console.error('Bind failed:', e) }
|
||||||
|
|||||||
Reference in New Issue
Block a user