From 4e902530476bb25fa70b4a81cc34825724c2bd5f Mon Sep 17 00:00:00 2001 From: xiaji Date: Tue, 16 Jun 2026 09:52:24 +0800 Subject: [PATCH] =?UTF-8?q?debug(feed):=20trace=20=E5=93=AA=E9=87=8C?= =?UTF-8?q?=E8=B0=83=E7=9A=84=20clearPrompts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Feed.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/views/Feed.vue b/frontend/src/views/Feed.vue index 949e52f..068ddc4 100644 --- a/frontend/src/views/Feed.vue +++ b/frontend/src/views/Feed.vue @@ -53,6 +53,8 @@ const articlesWithPrompts = computed(() => { // 移除某篇文章的所有提示条(8 秒超时 / 确认后 / 过滤变化) function clearPromptsForArticle(articleId: number) { + // eslint-disable-next-line no-console + console.log('[CLEAR_ONE]', articleId, 'stack:', new Error().stack?.split('\n').slice(2, 5).join(' | ')) if (categoryPromptsByArticle.value.has(articleId)) { const next = new Map(categoryPromptsByArticle.value) next.delete(articleId) @@ -62,6 +64,8 @@ function clearPromptsForArticle(articleId: number) { // 全清 function clearAllPrompts() { + // eslint-disable-next-line no-console + console.log('[CLEAR_ALL] size=', categoryPromptsByArticle.value.size, 'stack:', new Error().stack?.split('\n').slice(2, 5).join(' | ')) if (categoryPromptsByArticle.value.size > 0) { categoryPromptsByArticle.value = new Map() }