|
|
@ -1,5 +1,4 @@
|
|
|
|
class MainController < ApplicationController
|
|
|
|
class MainController < ApplicationController
|
|
|
|
skip_before_action :check_sign
|
|
|
|
|
|
|
|
skip_before_action :user_setup
|
|
|
|
skip_before_action :user_setup
|
|
|
|
skip_before_action :setup_laboratory
|
|
|
|
skip_before_action :setup_laboratory
|
|
|
|
|
|
|
|
|
|
|
@ -22,11 +21,11 @@ class MainController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: 这块之后需要整合,者架构重新变化,统一跳转到index后再路由分发
|
|
|
|
# TODO: 这块之后需要整合,者架构重新变化,统一跳转到index后再路由分发
|
|
|
|
# if params[:path] && params[:path]&.include?("h5educoderbuild") && params[:path].split("/").first == "h5educoderbuild"
|
|
|
|
if params[:path] && params[:path]&.include?("h5educoderbuild") && params[:path].split("/").first == "h5educoderbuild"
|
|
|
|
# render file: 'public/h5educoderbuild/index.html', :layout => false
|
|
|
|
render file: 'public/h5educoderbuild/index.html', :layout => false
|
|
|
|
# else
|
|
|
|
else
|
|
|
|
# render file: 'public/react/build/index.html', :layout => false
|
|
|
|
render file: 'public/react/build/index.html', :layout => false
|
|
|
|
# end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|