|
|
@@ -25,7 +25,7 @@ class NewsController extends FrontController
|
|
|
$list = News::where($where)
|
|
|
->select(['id','image','cn_title','en_title','created_at'])
|
|
|
->orderBy('id','desc')
|
|
|
- ->paginate(1);
|
|
|
+ ->paginate(10);
|
|
|
|
|
|
$cn_data = [];
|
|
|
$en_data = [];
|
|
|
@@ -51,7 +51,7 @@ class NewsController extends FrontController
|
|
|
'cn' => $cn_datas,
|
|
|
'en' => $en_datas,
|
|
|
'total' => $list->total(),
|
|
|
- 'limit' => 1,
|
|
|
+ 'limit' => 10,
|
|
|
]);
|
|
|
}
|
|
|
|