fix: 修改一些bug
This commit is contained in:
parent
186d0efd37
commit
4271f555bc
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user