Browse Source

fix: main content_type

tags/v3.2.0
yystopf 4 years ago
parent
commit
76183344bc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/main_controller.rb

+ 2
- 2
app/controllers/main_controller.rb View File

@@ -23,9 +23,9 @@ class MainController < ApplicationController
# TODO: 这块之后需要整合,者架构重新变化,统一跳转到index后再路由分发
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, :content_type=> 'text/html'
else
render file: 'public/react/build/index.html', :layout => false
render file: 'public/react/build/index.html', :layout => false, :content_type=> 'text/html'
end
end


Loading…
Cancel
Save