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 = '×'; + } + }; })();