按需求调整

This commit is contained in:
2021-12-09 16:11:21 +08:00
parent 40b700b091
commit 9871830e9c
4 changed files with 45 additions and 33 deletions

View File

@@ -33,7 +33,7 @@ class CategoryController extends Controller
->where('status', 1)
->latest('sort')
->latest('created_at')
->paginate(8);
->paginate();
$parent = $category;
if ($category->childrens->isEmpty() && $category->parent) {