From 4668865b4fa8fec6aa48f1ed45648bf92365f07d Mon Sep 17 00:00:00 2001 From: augushong Date: Sun, 24 May 2026 09:03:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(debug):=20=E5=A4=8D=E9=80=89=E6=A1=86?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E6=97=B6=E8=87=AA=E5=8A=A8=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=88=B0localStorage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/common/tpl/think_exception_debug.tpl | 5 +++++ 1 file changed, 5 insertions(+) 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