fix(pkb): fix create KB and upload issues - remove simulated upload, fix department mapping, add upload modal

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
This commit is contained in:
2026-01-13 13:17:20 +08:00
parent d595037316
commit 4088275290
280 changed files with 4344 additions and 150 deletions

View File

@@ -687,3 +687,6 @@ private async processMessageAsync(xmlData: any) {

View File

@@ -1081,3 +1081,6 @@ async function testIntegration() {

View File

@@ -222,3 +222,6 @@ Content-Type: application/json

View File

@@ -642,3 +642,6 @@ REDCap API: exportRecords success { recordCount: 1 }

View File

@@ -648,3 +648,6 @@ backend/src/modules/iit-manager/

View File

@@ -798,3 +798,6 @@ CREATE TABLE iit_schema.wechat_tokens (

View File

@@ -555,3 +555,6 @@ Day 3 的开发工作虽然遇到了多个技术问题,但最终成功完成

View File

@@ -322,3 +322,6 @@ AI: "出生日期2017-01-04

View File

@@ -266,3 +266,6 @@ Day 4: REDCap EMWebhook推送← 作为增强,而非核心

View File

@@ -680,3 +680,6 @@ const answer = `根据研究方案[1]和CRF表格[2],纳入标准包括: