|
|
|
@ -23,6 +23,9 @@ class MainController < ApplicationController
|
|
|
|
|
|
|
|
|
|
if params[:path] && params[:path]&.include?("educoderh5") && params[:path].split("/").first == "educoderh5"
|
|
|
|
|
render file: 'public/h5build/index.html', :layout => false
|
|
|
|
|
# TODO: 这块之后需要整合,到上面去,或者架构重新变化,统一跳转到index后再路由分发
|
|
|
|
|
elsif params[:path] && params[:path]&.include?("h5educoderbuild") && params[:path].split("/").first == "h5educoderbuild"
|
|
|
|
|
render file: 'public/h5educoderbuild/index.html', :layout => false
|
|
|
|
|
else
|
|
|
|
|
render file: 'public/react/build/index.html', :layout => false
|
|
|
|
|
end
|
|
|
|
|