sun-pc-linux 3 days ago
parent
commit
d0101b92f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/user.go

+ 1 - 1
src/api/user.go

@@ -132,7 +132,7 @@ func UserList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 				}, &role)
 			}
 			// 拼接角色信息
-			result.List[i]["roleInfo"] = role
+			result.List[i]["roleInfo"] = &role
 		}
 	}
 	return result, err