diff --git a/extend/base/common/tpl/think_exception_debug.tpl b/extend/base/common/tpl/think_exception_debug.tpl index 6079c92..0de36d0 100644 --- a/extend/base/common/tpl/think_exception_debug.tpl +++ b/extend/base/common/tpl/think_exception_debug.tpl @@ -761,6 +761,11 @@ if (isset($tables) && is_array($tables)) { } restoreCheckboxState(); updateDisabledState(); + // Auto-save on checkbox change + var checkboxes = document.querySelectorAll('#debug-toolbar input[type="checkbox"]'); + checkboxes.forEach(function(cb) { + cb.addEventListener('change', saveCheckboxState); + }); } // Run init on DOMContentLoaded or immediately if already loaded