Fixed issues: - Remove simulateUpload function from DashboardPage Step 3 - Map department to description field when creating KB - Add upload modal in WorkspacePage knowledge assets tab - Fix DocumentUpload import path (../../stores to ../stores) Known issue: Dify API validation error during document upload (file uploaded but DB record failed, needs investigation) Testing: KB creation works, upload dialog opens correctly
40 lines
623 B
Markdown
40 lines
623 B
Markdown
# PKB迁移 - 阶段2进行中
|
|
|
|
## 🔧 当前问题
|
|
|
|
**问题**: pkbRoutes导入错误
|
|
**原因**: 使用了命名导出而非默认导出
|
|
|
|
## ✅ 解决方案
|
|
|
|
修改 `src/index.ts` 的导入语句:
|
|
|
|
```typescript
|
|
// ❌ 错误(命名导出)
|
|
import { pkbRoutes } from './modules/pkb/index.js';
|
|
|
|
// ✅ 正确(默认导出)
|
|
import pkbRoutes from './modules/pkb/routes/index.js';
|
|
```
|
|
|
|
## 📝 已完成
|
|
- ✅ 创建PKB模块路由入口
|
|
- ✅ 添加健康检查端点
|
|
- ✅ 在主路由注册PKB模块
|
|
- ✅ 修复导入语句
|
|
|
|
## ⏭️ 下一步
|
|
- 重启服务器测试
|
|
- 验证新旧路由都可用
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|