feat: 重构管理后台前端架构并新增完整功能

This commit is contained in:
hugo committed 2026-06-03 11:49:14 +08:00
commit 93304a1803
88 files changed
+9941 -6500

No files matched your search

+6 -9
View File
@@ -28,7 +28,6 @@ import {
} from '../utils/wecom';
import { getAuthHeaders, getStoredAuthUser, saveAuthUser, logoutAuth } from '../utils/auth';
import { getLastChatAgentId } from '../utils/lastChatAgent';
import { openAgentChatTab } from '../utils/agentTabs';
import {
Settings,
LayoutGrid,
@@ -1122,8 +1121,7 @@ const navigateToChat = (id: number) => {
msg.warning(t('login.loginRequired'));
return;
}
const url = router.resolve(`/chat/${id}`).href;
openAgentChatTab(url, id);
router.push(`/chat/${id}`);
};
const navigateWithQuickQuestion = (agentId: number, question: string) => {
@@ -1132,11 +1130,10 @@ const navigateWithQuickQuestion = (agentId: number, question: string) => {
msg.warning(t('login.loginRequired'));
return;
}
const url = router.resolve({
router.push({
path: `/chat/${agentId}`,
query: { preset: question },
}).href;
openAgentChatTab(url, agentId);
});
};
const handleWecomDeeplinkContext = async () => {
@@ -1165,11 +1162,11 @@ const handleWecomDeeplinkContext = async () => {
if (target === 'chat' && agentIdRaw && isLoggedIn.value) {
const agentId = Number(agentIdRaw);
if (Number.isInteger(agentId) && agents.value.some((a) => a.id === agentId)) {
const url = router.resolve({
await router.push({
path: `/chat/${agentId}`,
query: preset ? { preset } : {},
}).href;
openAgentChatTab(url, agentId);
});
return;
}
}