update frontend

This commit is contained in:
Himit_ZH 2022-01-14 17:37:37 +08:00
parent 1ace6d3ae0
commit f66631e5f6
3 changed files with 7 additions and 0 deletions

View File

@ -205,6 +205,7 @@ export const m = {
View_Contest: 'View Contest',
Are_you_sure_you_want_to_reset_your_code: 'Are you sure you want to reset your code?',
Code_can_not_be_empty: 'Code can not be empty',
Code_Length_can_not_exceed_65535:'The code should contain no more than 65535 characters!',
Submit_code_successfully: 'Submit code successfully',
You_have_solved_the_problem: 'You have solved the problem',
Submitted_successfully: 'Submitted successfully',

View File

@ -206,6 +206,7 @@ export const m = {
View_Contest: '查看比赛',
Are_you_sure_you_want_to_reset_your_code: '您确定要重置代码吗?',
Code_can_not_be_empty: '代码不能为空',
Code_Length_can_not_exceed_65535:'代码的字符长度不能超过65535',
Submit_code_successfully: '提交代码成功',
You_have_solved_the_problem: '你已经解决了该问题',
Submitted_successfully: '提交成功',

View File

@ -1212,6 +1212,11 @@ export default {
return;
}
if (this.code.length > 65535) {
myMessage.error(this.$i18n.t('m.Code_Length_can_not_exceed_65535'));
return;
}
//
if (!this.canSubmit && this.$route.params.contestID) {
this.submitPwdVisible = true;