调整分类
This commit is contained in:
@@ -36,7 +36,8 @@ class CategoryController extends Controller
|
||||
->paginate();
|
||||
|
||||
$parent = $category;
|
||||
if ($category->childrens->isEmpty() && $category->parent) {
|
||||
if (! $category->getChildrenCount() && $category->parent) {
|
||||
|
||||
$parent = $category->parent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user