实训作业的描述接口不传实训简介

dev_auth
cxt 5 years ago
parent 558a7051ab
commit 163187c51b

@ -4,11 +4,11 @@ json.partial! "homework_btn_check", locals: {identity: @user_course_identity, ho
json.partial! "student_btn_check", locals: {identity: @user_course_identity, homework: @homework, work: @work}
json.description @homework.description
# 实训作业才有说明
if @homework.homework_type == "practice"
json.explanation @homework.explanation
else
json.description @homework.description
end
# 附件

Loading…
Cancel
Save