From 229c74fbea44d77182ce21eb5672a081ccb5dd60 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Thu, 12 Sep 2024 18:38:56 +0800 Subject: [PATCH] feat(admin): add DEBUG mode button to welcome page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Display the status of the DEBUG mode on the welcome page with a button that changes color and text based on the value of `APP_DEBUG` environment variable. Include a grey badge 提示 to prompt users to switch off DEBUG mode in production environments. --- app/admin/view/index/welcome.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/admin/view/index/welcome.html b/app/admin/view/index/welcome.html index c1c4979..1fd7000 100644 --- a/app/admin/view/index/welcome.html +++ b/app/admin/view/index/welcome.html @@ -137,6 +137,15 @@ + + DEBUG模式 + + + 建议线上环境关闭 APP_DEBUG + + 主要特色