Skip to content

Commit

Permalink
update frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
HimitZH committed Oct 1, 2022
1 parent 0503208 commit 38c555f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions hoj-vue/src/common/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const LOGO =
" |_| |_|\_____\____/|_____/|______| \n"+
" Hcode Online Judge(HOJ)"+"\n"+
" @Author Himit_ZH"+"\n"+
" @Last Update 20221001"+"\n"+
" QQ Group: 598587305"+"\n"+
" ->Github<- https://www.github.com/HimitZH/HOJ"+"\n"+
" ->Gitee<- https://gitee.com/himitzh0730/hoj";
Expand Down
3 changes: 3 additions & 0 deletions hoj-vue/src/components/oj/group/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,9 @@ export default {
fileList[i].pid = this.problem.id;
}
this.problem.testCaseScore = fileList;
this.problem.testCaseScore.forEach((item, index) => {
item.index = index + 1;
});
this.testCaseUploaded = true;
this.problem.uploadTestcaseDir = response.data.fileListDir;
},
Expand Down
3 changes: 3 additions & 0 deletions hoj-vue/src/views/admin/problem/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,9 @@ export default {
fileList[i].pid = this.problem.id;
}
this.problem.testCaseScore = fileList;
this.problem.testCaseScore.forEach((item, index) => {
item.index = index + 1;
});
this.testCaseUploaded = true;
this.problem.uploadTestcaseDir = response.data.fileListDir;
},
Expand Down

0 comments on commit 38c555f

Please sign in to comment.