Skip to content

Commit

Permalink
allow submission when judgement has done
Browse files Browse the repository at this point in the history
  • Loading branch information
zema1 committed Oct 15, 2018
1 parent b98ce73 commit 5017ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/oj/views/problem/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
:disabled="problemSubmitDisabled || submitted"
class="fl-right">
<span v-if="submitting">Submitting</span>
<span v-else-if="submitted">Submitted</span>
<span v-else>Submit</span>
</Button>
</Col>
Expand Down Expand Up @@ -375,6 +374,7 @@
this.result = res.data.data
if (Object.keys(res.data.data.statistic_info).length !== 0) {
this.submitting = false
this.submitted = false
clearTimeout(this.refreshStatus)
this.init()
} else {
Expand Down Expand Up @@ -407,7 +407,6 @@
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
Expand All @@ -419,6 +418,7 @@
})
return
}
this.submitted = true
this.checkSubmissionStatus()
}, res => {
this.getCaptchaSrc()
Expand Down

0 comments on commit 5017ecd

Please sign in to comment.