From 729b3d4146653bb6fbdde40bda23f7541595d12b Mon Sep 17 00:00:00 2001 From: pixel <303176530@qq.com> Date: Wed, 20 May 2020 16:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AEpath?= =?UTF-8?q?=E7=81=B5=E6=B4=BB=E5=BA=A6=20=E5=8F=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/v1/sys_menu.go | 2 +- web/src/view/superAdmin/menu/menu.vue | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/server/api/v1/sys_menu.go b/server/api/v1/sys_menu.go index fa1da790..533dca31 100644 --- a/server/api/v1/sys_menu.go +++ b/server/api/v1/sys_menu.go @@ -70,7 +70,7 @@ func AddBaseMenu(c *gin.Context) { var menu model.SysBaseMenu _ = c.ShouldBindJSON(&menu) MenuVerify := utils.Rules{ - "Path": {"notEmpty"}, + "Path": {utils.NotEmpty()}, "ParentId": {utils.NotEmpty()}, "Name": {utils.NotEmpty()}, "Component": {utils.NotEmpty()}, diff --git a/web/src/view/superAdmin/menu/menu.vue b/web/src/view/superAdmin/menu/menu.vue index 27d5ac77..8bfd38ee 100644 --- a/web/src/view/superAdmin/menu/menu.vue +++ b/web/src/view/superAdmin/menu/menu.vue @@ -8,6 +8,7 @@ +