mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
Merge pull request '调整返回值' (#124) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
@@ -7,6 +7,7 @@ class SitePagesController < ApplicationController
|
||||
|
||||
def index
|
||||
pages = PageQuery.call(params,current_user)
|
||||
@total_count = pages.size
|
||||
@pages = paginate(pages)
|
||||
end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user