update frontend
This commit is contained in:
parent
1ace6d3ae0
commit
f66631e5f6
|
@ -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',
|
||||
|
|
|
@ -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: '提交成功',
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue