From 721d690370bca588655fc57c1d6889f168af758c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Mon, 18 May 2026 21:51:06 +0800 Subject: [PATCH] feat: add detailed error message for category loading failure --- tauri-app/src/pages/VideoCreation/ScriptCreation.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tauri-app/src/pages/VideoCreation/ScriptCreation.tsx b/tauri-app/src/pages/VideoCreation/ScriptCreation.tsx index fd46055..60ae30f 100644 --- a/tauri-app/src/pages/VideoCreation/ScriptCreation.tsx +++ b/tauri-app/src/pages/VideoCreation/ScriptCreation.tsx @@ -46,9 +46,10 @@ export default function ScriptCreation() { .then(data => { setCategories(data); }) - .catch(() => { + .catch((err: Error) => { + console.error('[分类加载失败]', err); if (!cached) { - toast.error('加载分类列表失败'); + toast.error(`加载分类列表失败: ${err.message}`); } }); }, []);