This commit is contained in:
呱呱呱 2023-08-24 17:08:04 +08:00
parent eb449f9937
commit 1d220a6f13
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ class SitePagesController < ApplicationController
def index
pages = PageQuery.call(params,current_user)
@total_count = pages.size
@pages = paginate(pages)
end

View File

@ -1,4 +1,4 @@
json.total_count @pages.total_count
json.total_count @total_count
json.pages @pages.each do |page|
json.partial! 'info', locals: {page: page}
end