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
-6
View File
@@ -145,7 +145,6 @@ import { ref, reactive, computed, nextTick, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { MessagePlugin } from 'tdesign-vue-next'
import { login, register } from '@/api/auth'
import { loadTestData, resetTestDataLoaded } from '@/api/test-data'
import { useAuthStore } from '@/stores/auth'
const router = useRouter()
@@ -272,11 +271,6 @@ const handleLogin = async () => {
MessagePlugin.success('登录成功!')
// 登录成功后先重置并加载一次测试数据,确保有KB可用
try {
resetTestDataLoaded()
await loadTestData()
} catch (_) {}
// 等待状态更新完成后再跳转
await nextTick()