mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
fix(debug): 复选框变更时自动保存状态到localStorage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user