fix: polls /active route order, features redundant auth check
This commit is contained in:
@@ -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>`; }
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user