实训关卡列表增加开启挑战的按钮

newyslclassrooms
daiao 5 years ago
parent 6b780d50fc
commit 25956ec86e

@ -74,7 +74,7 @@ class Challenge < ApplicationRecord
if game.present?
shixun.task_pass || game.status != 3 ? "/tasks/#{game.identifier}" : ""
else
"/api/shixuns/#{shixun.identifier}/shixun_exec"
self.position == 1 ? "/api/shixuns/#{shixun.identifier}/shixun_exec" : ""
end
end

Loading…
Cancel
Save