feat: 完善前端功能,添加爬虫页面和项目分页
- 新增 CrawlerView 爬虫页面 - 完善 HomeView 分页展示(9个/页) - 更新 ProjectCard 组件图标 - 优化 API 客户端和类型定义 - 重构样式文件结构到独立目录 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -205,7 +205,8 @@ const fetchFiles = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await fileApi.list(projectId.value)
|
||||
files.value = res.data.files || []
|
||||
// API returns array directly via interceptor
|
||||
files.value = res || []
|
||||
} catch (error) {
|
||||
files.value = []
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user