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 {