修复在线预览.doc/.ppt等一些问题

This commit is contained in:
runny committed 2026-05-07 15:38:18 +08:00
1 parent 66b108f9d8
commit 8647537f2f
6 files changed
+516 -390

No files matched your search

+5 -10
View File
@@ -385,6 +385,8 @@ const persistLoginUser = (user: any) => {
saveAuthUser({ ...(user || {}) }, rememberMe.value);
};
const DEFAULT_POST_LOGIN_AGENT_ID = 16;
const handleLogin = async () => {
if (!loginUsername.value.trim()) {
showMessageDialog('warning', t('login.usernameRequired'));
@@ -420,16 +422,9 @@ const handleLogin = async () => {
persistLoginUser(user);
await fetchHome();
if (pendingAgentId.value) {
const targetId = pendingAgentId.value;
pendingAgentId.value = null;
if (agents.value.some(a => a.id === targetId)) {
navigateToChat(targetId);
} else {
showMessageDialog('error', t('workspace.permission.denied'));
}
}
pendingAgentId.value = null;
await router.replace(`/chat/${DEFAULT_POST_LOGIN_AGENT_ID}`);
} catch (e) {
console.error(e);
showMessageDialog('error', t('login.requestFailed'));