refactor(reaction): 清理旧的评论代码

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-06 03:55:11 -06:00
co-authored by Claude Opus 5
parent 9c6c6e1784
commit c91c923fd6
9 changed files with 3 additions and 379 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import { Icon } from "@iconify/vue"
import { storeToRefs } from "pinia"
import {
formatCode,
getComment,
getReaction,
submitCode,
updateProblemSetProgress,
} from "oj/api"
@@ -72,8 +72,8 @@ const { start: startCooldown, isPending: isCooldown } = useTimeout(5000, {
// ==================== AC后显示评论框 ====================
const { start: showCommentPanelDelayed } = useTimeoutFn(
async () => {
const res = await getComment(problem.value!.id)
if (!res.data) {
const res = await getReaction(problem.value!.id)
if (res.data.mine.length === 0) {
commentPanel.value = true
}
},