From a5d9b9db7f600b8023c95d331da64adb4800d91b Mon Sep 17 00:00:00 2001 From: Ying Date: Mon, 3 Jul 2023 20:41:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AdminController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/AdminController.php b/app/AdminController.php index e0d6afb..fcbcbeb 100644 --- a/app/AdminController.php +++ b/app/AdminController.php @@ -216,7 +216,8 @@ class AdminController extends BaseController /** * 默认共享模板 */ - return $this->view(Str::lower(request()->getController()) . '/add', [ + $template = str_replace('/_', '/', Str::snake(request()->getController())); + return $this->view($template . '/add', [ 'data' => $data ]); }