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

dev_aliyun2
daiao 5 years ago committed by harry
parent be9c4f191d
commit d8ce6a2cac

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

Loading…
Cancel
Save