diff --git a/biji-qianduan/src/components/HomePage.vue b/biji-qianduan/src/components/HomePage.vue index 7ccf9ef..234da61 100644 --- a/biji-qianduan/src/components/HomePage.vue +++ b/biji-qianduan/src/components/HomePage.vue @@ -457,11 +457,9 @@ const fetchGroupings = async () => { const allCategories = await groupingAll(""); categoryTree.value = buildTree(allCategories || []); } catch (error) { - console.error('获取分组失败:', error); - ElMessage.error('获取分组失败: ' + error.message); categoryTree.value = []; } -}; +} const selectFile = async (data) => { try { @@ -864,7 +862,7 @@ const handleSearch = async () => { } try { const response = await searchMarkdown(searchKeyword.value); - groupMarkdownFiles.value = response.data || []; + groupMarkdownFiles.value = response || []; } catch (error) { ElMessage.error('搜索失败: ' + error.message); }