Files
get_wechat/chatlab-web/frontend/check-wanchuan-config.js
yuanzhipeng b137fd7915 feat: 添加万川AI平台对接功能
- 新增万川AI平台API接口层,支持登录、获取知识库列表、上传文件等操作
- 实现万川平台配置界面,支持平台地址、账号密码配置和知识库绑定
- 在知识库页面添加上传功能,支持单个或批量上传售后报告到万川知识库
- 提供检查配置的工具脚本便于调试
2026-06-11 16:14:38 +08:00

17 lines
584 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 在浏览器控制台(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需要先在设置页面绑定知识库');
}