feat: 添加万川AI平台对接功能

- 新增万川AI平台API接口层,支持登录、获取知识库列表、上传文件等操作
- 实现万川平台配置界面,支持平台地址、账号密码配置和知识库绑定
- 在知识库页面添加上传功能,支持单个或批量上传售后报告到万川知识库
- 提供检查配置的工具脚本便于调试
This commit is contained in:
2026-06-11 16:14:38 +08:00
parent d332844459
commit b137fd7915
5 changed files with 796 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
// 在浏览器控制台(F12)粘贴运行以下代码:
console.log('=== 检查万川知识库配置 ===');
const raw = localStorage.getItem('chatlab_wanchuan_config');
console.log('原始配置:', raw);
if (raw) {
try {
const config = JSON.parse(raw);
console.log('解析后配置:', config);
console.log('platformUrl:', config.platformUrl);
console.log('selectedKbId:', config.selectedKbId);
} catch (e) {
console.error('配置解析失败:', e);
}
} else {
console.warn('未找到 chatlab_wanchuan_config需要先在设置页面绑定知识库');
}