修改
This commit is contained in:
@@ -20,7 +20,7 @@ class CategoryController extends Controller
|
||||
} else {
|
||||
$articles = $category->relations(Category::TYPE_ARTICLE)->paginate(8);
|
||||
$parent = $category;
|
||||
if ($category->childrens->isEmpty()) {
|
||||
if ($category->childrens->isEmpty() && $category->patent) {
|
||||
$parent = $category->parent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user