debug(feed): trace 提示条被清的位置

This commit is contained in:
xiaji
2026-06-16 09:18:30 +08:00
parent 95d227f70f
commit 424d4c4e11

View File

@@ -57,12 +57,16 @@ function clearPromptsForArticle(articleId: number) {
const next = new Map(categoryPromptsByArticle.value) const next = new Map(categoryPromptsByArticle.value)
next.delete(articleId) next.delete(articleId)
categoryPromptsByArticle.value = next categoryPromptsByArticle.value = next
// eslint-disable-next-line no-console
console.log('[clearPromptsForArticle] called for', articleId, 'stack:', new Error().stack?.split('\n').slice(1, 4).join(' | '))
} }
} }
// 全清 // 全清
function clearAllPrompts() { function clearAllPrompts() {
if (categoryPromptsByArticle.value.size > 0) { if (categoryPromptsByArticle.value.size > 0) {
// eslint-disable-next-line no-console
console.log('[clearAllPrompts] called, stack:', new Error().stack?.split('\n').slice(1, 4).join(' | '))
categoryPromptsByArticle.value = new Map() categoryPromptsByArticle.value = new Map()
} }
if (categoryPromptTimer !== null) { if (categoryPromptTimer !== null) {