Skip to content

Commit

Permalink
add group
Browse files Browse the repository at this point in the history
  • Loading branch information
HimitZH committed Apr 1, 2022
1 parent 525fc11 commit e8ab82c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ docker ps # 查看当前运行的容器状态
| 2022-02-25 | 支持PyPy2、PyPy3、JavaScript V8、JavaScript Node、PHP | Himit_ZH |
| 2022-03-12 | 后端接口全部重构,赛外榜单增加缓存 | Himit_ZH |
| 2022-03-28 | 合并冷蕴提交的团队功能 | Himit_ZH、冷蕴 |
| 2022-04-01 | 正式上线团队功能 | Himit_ZH、冷蕴 |

## 五、部分截图

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ public void deleteContest(Long cid) throws StatusFailException {
public void addContest(AdminContestVo adminContestVo) throws StatusFailException {
Contest contest = BeanUtil.copyProperties(adminContestVo, Contest.class, "starAccount");
JSONObject accountJson = new JSONObject();
accountJson.set("star_account", adminContestVo.getStarAccount());
if (adminContestVo.getStarAccount() == null) {
accountJson.set("star_account", new ArrayList<>());
} else {
accountJson.set("star_account", adminContestVo.getStarAccount());
}
contest.setStarAccount(accountJson.toString());
boolean isOk = contestEntityService.save(contest);
if (!isOk) { // 删除成功
Expand Down
6 changes: 2 additions & 4 deletions hoj-vue/src/components/oj/common/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
class="fa fa-users"
style="margin-right: 5px;width: 24px;text-align: center;"
></i
>{{ $t('m.NavBar_Group') }}(beta)</el-menu-item
>{{ $t('m.NavBar_Group') }}</el-menu-item
>

<el-submenu index="about">
Expand Down Expand Up @@ -483,9 +483,7 @@
<mu-list-item-action>
<mu-icon value=":fa fa-users" size="24"></mu-icon>
</mu-list-item-action>
<mu-list-item-title
>{{ $t('m.NavBar_Group') }}(beta)</mu-list-item-title
>
<mu-list-item-title>{{ $t('m.NavBar_Group') }}</mu-list-item-title>
</mu-list-item>

<mu-list-item
Expand Down

0 comments on commit e8ab82c

Please sign in to comment.