fix: polls /active route order, features redundant auth check

This commit is contained in:
2026-07-14 03:03:56 +08:00
parent ee2f33c61f
commit 3d7393817c
2 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ const FeaturesPage = {
ct.innerHTML = items.length === 0
? '<div class="empty"><i class="fas fa-lightbulb"></i><p>暂无更新项目</p></div>'
: items.map(i => this.renderItem(i)).join('');
for (const i of items) if (Auth.logged() || Auth.logged()) this.bindVote(i);
for (const i of items) if (Auth.logged()) this.bindVote(i);
} catch (e) { ct.innerHTML = `<div class="alert alert-e">${e.message}</div>`; }
},