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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user