diff --git a/src/pages/oj/views/problem/Problem.vue b/src/pages/oj/views/problem/Problem.vue index 56846e8..6dfd80a 100644 --- a/src/pages/oj/views/problem/Problem.vue +++ b/src/pages/oj/views/problem/Problem.vue @@ -91,10 +91,11 @@ @@ -228,6 +229,7 @@ language: 'C++', theme: 'solarized', submissionId: '', + submitted: false, result: { result: 9 }, @@ -405,6 +407,7 @@ const submitFunc = (data, detailsVisible) => { this.statusVisible = true api.submitCode(data).then(res => { + this.submitted = true this.submissionId = res.data.data && res.data.data.submission_id // 定时检查状态 this.submitting = false diff --git a/src/pages/oj/views/submission/SubmissionDetails.vue b/src/pages/oj/views/submission/SubmissionDetails.vue index 65d4731..43b59d7 100644 --- a/src/pages/oj/views/submission/SubmissionDetails.vue +++ b/src/pages/oj/views/submission/SubmissionDetails.vue @@ -1,41 +1,41 @@