fixed 评审标记为已读和未读

This commit is contained in:
“xxq250”
2022-08-02 15:27:16 +08:00
parent 7597f1fd8f
commit 9d385845a6
3 changed files with 34 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
class Admins::Topic::BannersController < Admins::Topic::BaseController
before_action :find_banner, only: [:edit, :update, :destroy]
def index
def index
@banners = paginate(::Topic::Banner)
@banners = paginate(::Topic::Banner.where("title like ?", "%#{params[:search]}%")) if params[:search].present?
end
def new