调整名称

This commit is contained in:
2020-09-24 09:35:06 +08:00
parent aca6e7b1eb
commit d78af11b49
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ class CategoryController extends Controller
if ($category->type == Category::TYPE_SHOW && $category->article_id) {
return redirect("articles/" . $category->article_id);
} else {
$articles = $category->relations(Category::TYPE_ARTICLE)->paginate(8);
$articles = $category->relations(Category::TYPE_ARTICLE)->paginate();
$parent = $category;
if ($category->childrens->isEmpty() && $category->parent) {