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

@@ -180,3 +180,6 @@ logger.info('[SessionMemory] 会话记忆管理器已启动', {

View File

@@ -114,3 +114,6 @@ checkTableStructure();

View File

@@ -101,3 +101,6 @@ checkProjectConfig().catch(console.error);

View File

@@ -83,3 +83,6 @@ main();

View File

@@ -540,3 +540,6 @@ URL: https://iit.xunzhengyixue.com/api/v1/iit/patient-wechat/callback

View File

@@ -175,3 +175,6 @@ console.log('');

View File

@@ -492,3 +492,6 @@ export const patientWechatService = new PatientWechatService();

View File

@@ -137,3 +137,6 @@ testDifyIntegration().catch(error => {

View File

@@ -166,3 +166,6 @@ testIitDatabase()

View File

@@ -152,3 +152,6 @@ if (hasError) {

View File

@@ -178,3 +178,6 @@ async function testUrlVerification() {

View File

@@ -259,3 +259,6 @@ main().catch((error) => {

View File

@@ -143,3 +143,6 @@ Write-Host ""

View File

@@ -236,3 +236,6 @@ export interface CachedProtocolRules {