1.返回聊天时,改为跳转至上次的聊天Agent

2.排程记录界面增加横纵向滚动
This commit is contained in:
hugo committed 2026-05-26 20:00:18 +08:00
1 parent 71dcfd8ca4
commit 3642ed8529
4 files changed
+95 -58

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
const STORAGE_KEY = 'hxops_last_chat_agent_id';
export function getLastChatAgentId(fallback = 16): number {
try {
const raw = sessionStorage.getItem(STORAGE_KEY);
const id = Number(raw);
return Number.isFinite(id) && id > 0 ? id : fallback;
} catch {
return fallback;
}
}
export function setLastChatAgentId(agentId: number): void {
if (!Number.isFinite(agentId) || agentId <= 0) return;
try {
sessionStorage.setItem(STORAGE_KEY, String(agentId));
} catch {
// ignore storage failures
}
}