From 3c6a1bbf81df33874983ff76cb17102b03783db1 Mon Sep 17 00:00:00 2001 From: solitary <2546864722@qq.com> Date: Wed, 10 Apr 2024 03:25:27 +0800 Subject: [PATCH 1/3] 1221 --- src/Http/Controllers/IndexController.php | 2 +- src/Providers/LayuiAdminServiceProvider.php | 3 +- views/admin_user/index.blade.php | 2 +- views/index.blade.php | 110 ++++++++++++++++++++ views/layouts/admin.blade.php | 85 --------------- views/navigation/index.blade.php | 2 +- views/permission/index.blade.php | 2 +- views/permission_group/index.blade.php | 2 +- views/public/404.blade.php | 62 +++++++++++ views/public/admin.blade.php | 107 +++++++++++++++++++ views/public/crumb.blade.php | 10 ++ views/public/footer.blade.php | 1 + views/public/form.blade.php | 11 ++ views/public/header.blade.php | 27 +++++ views/public/layout.blade.php | 24 +++++ views/role/assign_permission.blade.php | 2 +- views/role/index.blade.php | 2 +- 17 files changed, 361 insertions(+), 93 deletions(-) create mode 100644 views/index.blade.php delete mode 100644 views/layouts/admin.blade.php create mode 100644 views/public/404.blade.php create mode 100644 views/public/admin.blade.php create mode 100644 views/public/crumb.blade.php create mode 100644 views/public/footer.blade.php create mode 100644 views/public/form.blade.php create mode 100644 views/public/header.blade.php create mode 100644 views/public/layout.blade.php diff --git a/src/Http/Controllers/IndexController.php b/src/Http/Controllers/IndexController.php index 57ba68f..cb00d98 100644 --- a/src/Http/Controllers/IndexController.php +++ b/src/Http/Controllers/IndexController.php @@ -7,6 +7,6 @@ class IndexController extends Controller { public function index() { - return view("admin::layouts.admin"); + return view("admin::index"); } } \ No newline at end of file diff --git a/src/Providers/LayuiAdminServiceProvider.php b/src/Providers/LayuiAdminServiceProvider.php index 5e94efc..acf3e53 100644 --- a/src/Providers/LayuiAdminServiceProvider.php +++ b/src/Providers/LayuiAdminServiceProvider.php @@ -45,8 +45,9 @@ public function register() private function viewComposer() { View::composer( - 'admin::layouts.admin', 'Moell\LayuiAdmin\ViewComposers\AdminComposer' + 'admin::index', 'Moell\LayuiAdmin\ViewComposers\AdminComposer' ); + view()->share('siteName' ,'nft'); } private function registerMigrations() diff --git a/views/admin_user/index.blade.php b/views/admin_user/index.blade.php index 3f0a00c..6821539 100644 --- a/views/admin_user/index.blade.php +++ b/views/admin_user/index.blade.php @@ -1,6 +1,6 @@ @section("title", "管理员管理") -@extends("admin::layouts.admin") +@extends("admin::public.layout") @section("breadcrumb")