Skip to content

Commit 1831e75

Browse files
authored
fix: 修复多级目录时显示异常的问题 (#8)
1 parent e21905f commit 1831e75

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

logic/system/system_base_logic.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ func (l BaseLogic) Dashboard(c *gin.Context, req interface{}) (data interface{},
5252
DataType: "user",
5353
DataName: "用户",
5454
DataCount: userCount,
55-
Icon: "people",
56-
Path: "#/personnel/user",
55+
Icon: "user",
56+
Path: "#/system/user",
5757
},
5858
&systemRsp.DashboardList{
5959
DataType: "group",
6060
DataName: "分组",
6161
DataCount: groupCount,
6262
Icon: "peoples",
63-
Path: "#/personnel/group",
63+
Path: "#/system/group",
6464
},
6565
&systemRsp.DashboardList{
6666
DataType: "role",
@@ -88,7 +88,7 @@ func (l BaseLogic) Dashboard(c *gin.Context, req interface{}) (data interface{},
8888
DataName: "日志",
8989
DataCount: logCount,
9090
Icon: "documentation",
91-
Path: "#/log/operation-log",
91+
Path: "#/system/log/operationLog",
9292
},
9393
)
9494

public/common/init_mysql_data.go

+12-12
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func InitData() {
9191
Icon: "user",
9292
Path: "user",
9393
Component: "/system/user/index",
94-
Sort: 3,
94+
Sort: 2,
9595
ParentId: uint1,
9696
Roles: roles[:1],
9797
Creator: "系统",
@@ -116,7 +116,7 @@ func InitData() {
116116
Icon: "eye-open",
117117
Path: "role",
118118
Component: "/system/role/index",
119-
Sort: 10,
119+
Sort: 4,
120120
ParentId: uint1,
121121
Roles: roles[:1],
122122
Creator: "系统",
@@ -128,7 +128,7 @@ func InitData() {
128128
Icon: "tree-table",
129129
Path: "menu",
130130
Component: "/system/menu/index",
131-
Sort: 13,
131+
Sort: 5,
132132
ParentId: uint1,
133133
Roles: roles[:1],
134134
Creator: "系统",
@@ -140,7 +140,7 @@ func InitData() {
140140
Icon: "tree",
141141
Path: "api",
142142
Component: "/system/api/index",
143-
Sort: 14,
143+
Sort: 6,
144144
ParentId: uint1,
145145
Roles: roles[:1],
146146
Creator: "系统",
@@ -150,10 +150,10 @@ func InitData() {
150150
Name: "Log",
151151
Title: "日志管理",
152152
Icon: "log",
153-
Path: "/log",
154-
Component: "Layout",
155-
Redirect: "/log/operationLog",
156-
Sort: 20,
153+
Path: "log",
154+
Component: "/system/log/index",
155+
Redirect: "/system/log/operationLog",
156+
Sort: 7,
157157
ParentId: uint1,
158158
Roles: roles[:2],
159159
Creator: "系统",
@@ -164,8 +164,8 @@ func InitData() {
164164
Title: "操作日志",
165165
Icon: "documentation",
166166
Path: "operationLog",
167-
Component: "/system/operationLog/index",
168-
Sort: 21,
167+
Component: "/system/log/operationLog/index",
168+
Sort: 8,
169169
ParentId: uint7,
170170
Roles: roles[:2],
171171
Creator: "系统",
@@ -177,7 +177,7 @@ func InitData() {
177177
Icon: "example",
178178
Path: "/example",
179179
Component: "Layout",
180-
Sort: 22,
180+
Sort: 9,
181181
ParentId: uint0,
182182
Roles: roles[:2],
183183
Creator: "系统",
@@ -189,7 +189,7 @@ func InitData() {
189189
Icon: "peoples",
190190
Path: "CloudAccount",
191191
Component: "/example/cloudAccount/index",
192-
Sort: 23,
192+
Sort: 10,
193193
ParentId: uint9,
194194
Roles: roles[:2],
195195
Creator: "系统",

0 commit comments

Comments
 (0)