diff --git a/app/views/polls/_commit_answers_result.json.jbuilder b/app/views/polls/_commit_answers_result.json.jbuilder index 2d33731f1..b1115d093 100644 --- a/app/views/polls/_commit_answers_result.json.jbuilder +++ b/app/views/polls/_commit_answers_result.json.jbuilder @@ -21,5 +21,7 @@ json.question do json.answer_percent question_vote_user.present? ? (answer_users_count.to_f / question_vote_user.to_f).round(3) : 0.0 end end - json.vote_text question_votes.find_vote_text.present? ? question_votes.pluck(:vote_text).reject(&:blank?) : "--" #问题的回答是否有用户手动输入的内容 + if question_votes.find_vote_text.present? + json.vote_text question_votes.pluck(:vote_text) #问题的回答是否有用户手动输入的内容 + end end \ No newline at end of file