diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index e20a8bd28..7cda7f7cb 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -1201,7 +1201,7 @@ class ExercisesController < ApplicationController # 分页 @page = params[:page] || 1 @limit = params[:limit] || 20 - @exercise_users_list = @exercise_users_list.page(@page).per(@limit) + @exercise_users_list = @exercise_users_list.preload(:exercise_user_scores, user: :user_extension).page(@page).per(@limit) else @exercise_users_list = []