debug(feed): trace 提示条被清的位置
This commit is contained in:
@@ -57,12 +57,16 @@ function clearPromptsForArticle(articleId: number) {
|
||||
const next = new Map(categoryPromptsByArticle.value)
|
||||
next.delete(articleId)
|
||||
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() {
|
||||
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()
|
||||
}
|
||||
if (categoryPromptTimer !== null) {
|
||||
|
||||
Reference in New Issue
Block a user