fix(wiki): type scanResult.errors so the scan error list type-checks

This commit is contained in:
matevip 2026-06-07 18:05:15 +08:00
parent d2e1f9eb9c
commit 396a54440f

View File

@ -500,7 +500,7 @@ const textTitle = ref('')
const textContent = ref('')
const dirPath = ref(store.currentKB?.sourceDirectory || '')
const scanning = ref(false)
const scanResult = ref<{ scanned: number; added: number; skipped: number } | null>(null)
const scanResult = ref<{ scanned: number; added: number; skipped: number; errors?: string[] } | null>(null)
// Drag-over state
const { isDragging, onDragEnter, onDragLeave, onDrop: handleDrop } = useFileDrop(uploadDroppedFiles)