fix error

This commit is contained in:
邱博亞 2022-02-27 12:29:40 +08:00
parent 3d2a33a9b8
commit f9760abc02
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<%
params = OrbitHelper.params
page = Page.where(url:params['url']).first
page = @page || Page.where(url:params['url']).first
@layout_type = 0
if page.methods.include?(:select_option_items)
@show_option_items = ModuleApp.where(key: 'gallery').last.show_option_items rescue nil