mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-22 09:01:51 +08:00
fix: 绑定工具触发的报告撰写对话
This commit is contained in:
1 parent
aac79d72e9
commit
f48f4ec8e2
2 files changed
+7
-1
No files matched your search
@@ -76,7 +76,7 @@ export function FindingAutoChat({
|
||||
setConversation({ id: initialConversationId, agent_key: agentKey, title: `漏洞 #${findingId} · ${safeTitle}`, created_at: "", updated_at: "" });
|
||||
return;
|
||||
}
|
||||
const storedID = Number(window.localStorage.getItem(storageKey));
|
||||
const storedID = agentKey === "auto" ? Number(window.localStorage.getItem(storageKey)) : 0;
|
||||
if (Number.isSafeInteger(storedID) && storedID > 0) {
|
||||
setConversation({
|
||||
id: storedID,
|
||||
|
||||
Reference in new issue
Block a user