优化代码
This commit is contained in:
@@ -217,7 +217,7 @@ func AllModuleMaps() []maps.Map {
|
||||
{
|
||||
"name": "工单系统",
|
||||
"code": AdminModuleCodeTicket,
|
||||
"url": "/ticket",
|
||||
"url": "/tickets",
|
||||
},
|
||||
}...)
|
||||
}
|
||||
|
||||
@@ -16,14 +16,14 @@ func (this *OptionsAction) RunPost(params struct {
|
||||
usersResp, err := this.RPC().UserRPC().ListEnabledUsers(this.AdminContext(), &pb.ListEnabledUsersRequest{
|
||||
Keyword: params.Keyword,
|
||||
Offset: 0,
|
||||
Size: 10000, // TODO 改进 <plan-user-selector> 组件
|
||||
Size: 100,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
return
|
||||
}
|
||||
|
||||
userMaps := []maps.Map{}
|
||||
var userMaps = []maps.Map{}
|
||||
for _, user := range usersResp.Users {
|
||||
userMaps = append(userMaps, maps.Map{
|
||||
"id": user.Id,
|
||||
|
||||
Reference in New Issue
Block a user