feat(web): default video sort to published and UP sort to avg_views

This commit is contained in:
kairee committed 2026-11-03 03:09:53 +08:00
1 parent 764bde65d9
commit 11930db2bf
8 files changed
+31 -20

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ function bindControls(root) {
}
async function renderScope(root, { query }, scope) {
const sort = query.get("sort") || "efficiency";
const sort = query.get("sort") || (scope === "up" ? "avg_views" : "published");
const within = query.get("within_days") || "";
const year = query.get("year") || "";
const growthDays = query.get("growth_days") || "7";