From 577ee6b9743061b9128bc9017df9e11af931cb12 Mon Sep 17 00:00:00 2001 From: augushong Date: Sun, 24 May 2026 10:09:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(debug):=20=E6=8A=A5=E9=94=99=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E6=89=8B=E6=9C=BA=E7=AB=AF=E9=80=82?= =?UTF-8?q?=E9=85=8D=EF=BC=8C=E5=B7=A5=E5=85=B7=E6=A0=8F=E5=8F=AF=E6=8A=98?= =?UTF-8?q?=E5=8F=A0=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=8E=9F=E7=94=9F=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E6=BA=A2=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/common/tpl/think_exception_debug.tpl | 141 ++++++++++++++++++ 1 file changed, 141 insertions(+) diff --git a/extend/base/common/tpl/think_exception_debug.tpl b/extend/base/common/tpl/think_exception_debug.tpl index a3a3567..aa9a3a0 100644 --- a/extend/base/common/tpl/think_exception_debug.tpl +++ b/extend/base/common/tpl/think_exception_debug.tpl @@ -93,6 +93,7 @@ if (!function_exists('echo_value')) { + 系统发生错误 @@ -537,6 +664,7 @@ if (!function_exists('echo_value')) { +
@@ -994,6 +1122,19 @@ if (isset($tables) && is_array($tables)) { } updatePreviewIfOpen(); }; + + // Toggle toolbar on mobile + window.toggleToolbar = function() { + var toolbar = document.getElementById('debug-toolbar'); + var toggleBtn = document.getElementById('debug-toolbar-toggle'); + if (toolbar.classList.contains('toolbar-open')) { + toolbar.classList.remove('toolbar-open'); + toggleBtn.innerHTML = '☰'; + } else { + toolbar.classList.add('toolbar-open'); + toggleBtn.innerHTML = '×'; + } + }; })();