update fe

This commit is contained in:
Himit_ZH 2021-07-16 22:19:45 +08:00
parent e3c18922e7
commit 2a1988d353
2 changed files with 11 additions and 1 deletions

View File

@ -1291,6 +1291,8 @@ export default {
// spj
if (!this.spjRecord.spjCode) {
problemDto['changeSpj'] = true;
this.problem.spjCode = null;
this.problem.spjLanguage = null;
}
}
problemDto['problem'] = Object.assign({}, this.problem); //

View File

@ -166,7 +166,12 @@
</transition>
</el-tab-pane>
<el-tab-pane name="ContestComment" lazy :disabled="contestMenuDisabled">
<el-tab-pane
name="ContestComment"
lazy
:disabled="contestMenuDisabled"
v-if="contestEnded"
>
<span slot="label"
><i class="fa fa-commenting" aria-hidden="true"></i>&nbsp;{{
$t('m.Comment')
@ -345,6 +350,9 @@ export default {
return this.$markDown.render(this.contest.description);
}
},
contestEnded() {
return this.contestStatus === CONTEST_STATUS.ENDED;
},
},
watch: {
$route(newVal) {