From 0bca7eccec6a98e45bc2865a0f5fd424e3cfba1f Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 14 Oct 2025 01:21:15 +0800 Subject: [PATCH] update --- src/oj/problem/components/SubmitFlowchart.vue | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/oj/problem/components/SubmitFlowchart.vue b/src/oj/problem/components/SubmitFlowchart.vue index 4098bfd..44fd53a 100644 --- a/src/oj/problem/components/SubmitFlowchart.vue +++ b/src/oj/problem/components/SubmitFlowchart.vue @@ -46,12 +46,18 @@ const { renderError, renderFlowchart } = useMermaid() // 状态管理 const loading = ref(false) -const rating = ref(null) +const rating = ref({ score: 0, grade: "" }) const submissionCount = ref(0) const myFlowchartZippedStr = ref("") const myMermaidCode = ref("") const showDetailModal = ref(false) -const evaluation = ref(null) +const evaluation = ref({ + score: 0, + grade: "", + feedback: "", + suggestions: "", + criteria_details: {}, +}) // ==================== WebSocket 相关函数 ==================== // 处理 WebSocket 消息 @@ -225,7 +231,7 @@ onUnmounted(() => { @@ -264,17 +270,17 @@ onUnmounted(() => { - {{ evaluation.feedback }} - score + {{ evaluation.feedback }} score {