feat(ui): Support multi knowledgebases operation

This commit is contained in:
wizardchen
2025-09-17 16:02:08 +08:00
parent 0292b3ce36
commit 98e47e83d2
39 changed files with 1718 additions and 4839 deletions
-22
View File
@@ -5,19 +5,6 @@ import { generateRandomString } from "./index";
// API基础URL
const BASE_URL = import.meta.env.VITE_IS_DOCKER ? "" : "http://localhost:8080";
// 测试数据
let testData: {
tenant: {
id: number;
name: string;
api_key: string;
};
knowledge_bases: Array<{
id: string;
name: string;
description: string;
}>;
} | null = null;
// 创建Axios实例
const instance = axios.create({
@@ -29,15 +16,6 @@ const instance = axios.create({
},
});
// 设置测试数据
export function setTestData(data: typeof testData) {
testData = data;
}
// 获取测试数据
export function getTestData() {
return testData;
}
instance.interceptors.request.use(
(config) => {