feat: Auto-select newly added knowledge base

This commit is contained in:
ousugo
2025-02-22 23:17:30 +08:00
committed by 亢奋猫
parent 4e3b12c531
commit 9e97334dcf
@@ -22,7 +22,10 @@ const KnowledgePage: FC = () => {
const [isDragging, setIsDragging] = useState(false)
const handleAddKnowledge = async () => {
await AddKnowledgePopup.show({ title: t('knowledge.add.title') })
const newBase = await AddKnowledgePopup.show({ title: t('knowledge.add.title') })
if (newBase) {
setSelectedBase(newBase)
}
}
useEffect(() => {