This commit is contained in:
Himit_ZH 2021-06-28 16:04:17 +08:00
parent 1e25b051b9
commit 3e40500a49
1 changed files with 9 additions and 6 deletions

View File

@ -517,15 +517,18 @@ export default {
});
},
getLevelColor(difficulty) {
return (
'color: #fff !important;background-color:' +
PROBLEM_LEVEL[difficulty].color +
' !important;'
);
if (difficulty != undefined && difficulty != null) {
return (
'color: #fff !important;background-color:' +
this.PROBLEM_LEVEL[difficulty]['color'] +
' !important;'
);
}
},
getIconColor(status) {
return (
'font-weight: 600;font-size: 16px;color:' + JUDGE_STATUS[status].rgb
'font-weight: 600;font-size: 16px;color:' +
this.JUDGE_STATUS[status].rgb
);
},
},