diff --git a/app/views/homework_commons/index.json.jbuilder b/app/views/homework_commons/index.json.jbuilder index 9107c9634..daf7d9df2 100644 --- a/app/views/homework_commons/index.json.jbuilder +++ b/app/views/homework_commons/index.json.jbuilder @@ -17,6 +17,8 @@ json.homeworks @homework_commons.each do |homework| json.status_time curr_status[:time] json.time_status curr_status[:time_status] json.allow_late homework.allow_late + # 只有在主目录才显示 + json.upper_category_name homework.course_second_category&.name unless params[:category] unless curr_status[:status].include?("未发布") json.commit_count studentwork_count homework, 1, @member