fix: 在管理员登录时初始化agent存储 #552

This commit is contained in:
Wenjie Zhang 2026-03-16 17:58:00 +08:00
parent 06f8ec4d74
commit ed76824191
2 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ const goToChat = async () => {
//
if (userStore.isAdmin) {
//
await agentStore.initialize()
router.push('/agent')
return
}

View File

@ -401,6 +401,7 @@ const handleLogin = async () => {
if (redirectPath === '/') {
// /chat
if (userStore.isAdmin) {
await agentStore.initialize()
router.push('/agent')
return
}