feat(admin): add DEBUG mode button to welcome page

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.
This commit is contained in:
wolfcode
2024-09-12 18:38:56 +08:00
parent 336ca82729
commit 229c74fbea

View File

@@ -137,6 +137,15 @@
<button type="button" class="layui-btn layui-btn-xs layui-btn-primary" id="layui-version">-</button>
</td>
</tr>
<tr>
<td>DEBUG模式</td>
<td>
<button type="button" class="layui-btn layui-btn-xs {:env('APP_DEBUG')?'layui-btn-warm':'layui-bg-gray'}">
{:env('APP_DEBUG')?'开启中':'已关闭'}
</button>
<span class="layui-badge layui-bg-gray">建议线上环境关闭 APP_DEBUG</span>
</td>
</tr>
<tr>
<td>主要特色</td>
<td>