修改后台主页

This commit is contained in:
2020-09-11 16:28:21 +08:00
parent 49c3511dbe
commit a9e6d9af8c
2 changed files with 13 additions and 13 deletions

View File

@@ -15,20 +15,20 @@ class HomeController extends Controller
return $content return $content
->title('Dashboard') ->title('Dashboard')
->description('Description...') ->description('Description...')
->row(Dashboard::title()) // ->row(Dashboard::title())
->row(function (Row $row) { ->row(function (Row $row) {
$row->column(4, function (Column $column) { // $row->column(4, function (Column $column) {
$column->append(Dashboard::environment()); // $column->append(Dashboard::environment());
}); // });
//
$row->column(4, function (Column $column) { // $row->column(4, function (Column $column) {
$column->append(Dashboard::extensions()); // $column->append(Dashboard::extensions());
}); // });
//
$row->column(4, function (Column $column) { // $row->column(4, function (Column $column) {
$column->append(Dashboard::dependencies()); // $column->append(Dashboard::dependencies());
}); // });
}); });
} }
} }

View File

@@ -13,7 +13,7 @@ class CategoryController extends Controller
{ {
if ($category->type == Category::TYPE_SHOW) { if ($category->type == Category::TYPE_SHOW) {
if ($category->relations) { if ($category->relations) {
return route('article.show', $category->relations); return redirect(route('article.show', $category->relations));
} }
} }
$parent = getTopCate($category->id); $parent = getTopCate($category->id);