diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7c8015894..6046be5af 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -426,9 +426,9 @@ class ApplicationController < ActionController::Base # 小类别列表 def shixun_small_type list = [] - mirrors = MirrorRepository.select([:id, :type_name]).published_small_mirror + mirrors = MirrorRepository.select([:id, :type_name, :description]).published_small_mirror mirrors.try(:each) do |mirror| - list << {id: mirror.id, type_name: mirror.type_name} + list << {id: mirror.id, type_name: mirror.type_name, description: mirror.description} end list end diff --git a/public/react/src/modules/page/Index.js b/public/react/src/modules/page/Index.js index c695a0022..b2daa27e4 100644 --- a/public/react/src/modules/page/Index.js +++ b/public/react/src/modules/page/Index.js @@ -55,12 +55,12 @@ class Index extends Component { window.$('#root').css('position', 'absolute') // TPI浏览器缩放 - setTimeout(() => { - const agent = navigator.userAgent; - if (agent.indexOf('Mac OS') == -1) { - window._initZoomCheck() - } - }, 800) + // setTimeout(() => { + // const agent = navigator.userAgent; + // if (agent.indexOf('Mac OS') == -1) { + // window._initZoomCheck() + // } + // }, 800) this.onDrawerButtonClick = this.onDrawerButtonClick.bind(this) diff --git a/public/react/src/modules/page/component/TPICodeSetting.js b/public/react/src/modules/page/component/TPICodeSetting.js index 27ad3746b..51a9f390c 100644 --- a/public/react/src/modules/page/component/TPICodeSetting.js +++ b/public/react/src/modules/page/component/TPICodeSetting.js @@ -146,23 +146,25 @@ class TPICodeSetting extends Component { {/* */}