微调
This commit is contained in:
@@ -57,6 +57,10 @@ class CategoryController extends Controller
|
|||||||
$parent = $category->parent;
|
$parent = $category->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($category->children->isEmpty()) {
|
||||||
|
$parent = $category->parent;
|
||||||
|
}
|
||||||
|
|
||||||
return view($template, compact('category', 'parent', 'articles'));
|
return view($template, compact('category', 'parent', 'articles'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user