From b663062542519f3799d5a7e1ff5037c5fb6304ef Mon Sep 17 00:00:00 2001 From: huxin02 Date: Wed, 30 Apr 2025 18:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/stores/json/topMenu.json | 8 +------- .../java/com/aisino/iles/core/service/MenuService.java | 3 --- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/client/src/stores/json/topMenu.json b/client/src/stores/json/topMenu.json index 8c26ff9..92acf0d 100644 --- a/client/src/stores/json/topMenu.json +++ b/client/src/stores/json/topMenu.json @@ -1,13 +1,7 @@ { "gzt": [], "zhzf": [ - { - "gncdbh": 0, - "name": "首页", - "icon": "zyyy_rzzx", - "path": "/svi/index", - "router": true - }, + { "gncdbh": 2, "name": "执法对象管理", diff --git a/server/src/main/java/com/aisino/iles/core/service/MenuService.java b/server/src/main/java/com/aisino/iles/core/service/MenuService.java index b6fb77e..066772b 100644 --- a/server/src/main/java/com/aisino/iles/core/service/MenuService.java +++ b/server/src/main/java/com/aisino/iles/core/service/MenuService.java @@ -45,9 +45,6 @@ MenuService { @Transactional public Menu addMenu(@NonNull @Validated(value = Menu.Add.class) Menu menu) { menu.setMenuId(null); - if (StringUtils.isEmpty(menu.getMenuCode())) { - throw new BusinessError("菜单代码不能为空"); - } if (menuRepo.countByMenuCode(menu.getMenuCode()) > 0) { throw new BusinessError("菜单代码已经存在"); }