Skip to content

Commit a2737af

Browse files
committed
fix:添加id避免tree重复添加
1 parent a2551e8 commit a2737af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/model/request/sys_menu.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package request
22

33
import (
4+
"gin-vue-admin/global"
45
"gin-vue-admin/model"
56
)
67

@@ -12,6 +13,7 @@ type AddMenuAuthorityInfo struct {
1213

1314
func DefaultMenu() []model.SysBaseMenu {
1415
return []model.SysBaseMenu{{
16+
GVA_MODEL: global.GVA_MODEL{ID: 1},
1517
ParentId: "0",
1618
Path: "dashboard",
1719
Name: "dashboard",

0 commit comments

Comments
 (0)