From 396a54440f582a82530f361f3f50bf742457d67a Mon Sep 17 00:00:00 2001 From: matevip Date: Sun, 7 Jun 2026 18:05:15 +0800 Subject: [PATCH] fix(wiki): type scanResult.errors so the scan error list type-checks --- mateclaw-ui/src/views/Wiki/components/RawMaterialPanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mateclaw-ui/src/views/Wiki/components/RawMaterialPanel.vue b/mateclaw-ui/src/views/Wiki/components/RawMaterialPanel.vue index a3cdab3d..2fc90e07 100644 --- a/mateclaw-ui/src/views/Wiki/components/RawMaterialPanel.vue +++ b/mateclaw-ui/src/views/Wiki/components/RawMaterialPanel.vue @@ -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)