fix error

This commit is contained in:
chiu 2020-08-15 21:51:32 +08:00
parent cf9c46a543
commit 12e68a6b3b
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class CalendarsController < ApplicationController
def index
page = Page.where(page_id: OrbitHelper.params[:page_id]).first
style_file = page.layout=='index3' ? 'calendar_widget2' : 'calendar_widget1'
style_file = page.layout=='index3' ? '/assets/calendar_widget2' : '/assets/calendar_widget1'
{
"extras" => {
"page_id" => OrbitHelper.params[:page_id],