fix: 修改一些bug

This commit is contained in:
fengyarnom 2025-05-30 21:30:16 +08:00
parent 186d0efd37
commit 4271f555bc

View File

@ -338,6 +338,12 @@
function setupAutoRefresh() { function setupAutoRefresh() {
const autoRefreshCheckbox = document.getElementById('autoRefresh'); const autoRefreshCheckbox = document.getElementById('autoRefresh');
// 如果自动刷新复选框不存在,直接返回
if (!autoRefreshCheckbox) {
console.log('自动刷新功能未启用(元素不存在)');
return;
}
// 初始化自动刷新 // 初始化自动刷新
if (autoRefreshCheckbox.checked) { if (autoRefreshCheckbox.checked) {
startAutoRefresh(); startAutoRefresh();