修复几个前端小bug

This commit is contained in:
akira-cn 2022-01-28 17:21:21 +08:00
parent acce797b37
commit 0b7069cb75
4 changed files with 6 additions and 12375 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
package-lock.json
# Logs
logs
*.log

12373
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -109,7 +109,7 @@
{
title: this.$i18n.t('m.ContestType'),
render: (h, params) => {
return h('span', this.$i18n.t('m.' + params.row.contest_type.replace(' ', '_')))
return h('span', this.$i18n.t('m.' + params.row.contest_type ? params.row.contest_type.replace(' ', '_') : ''))
}
},
{

View File

@ -291,7 +291,9 @@
})
problem.languages = problem.languages.sort()
this.problem = problem
this.changePie(problem)
if (problem.statistic_info) {
this.changePie(problem)
}
// beforeRouteEnter, codetemplate
if (this.code !== '') {