fix: 修正清单进度文字折行,默认最多翻 99 页

进度数字固定在进度条左侧,不再被挤出窗口。
This commit is contained in:
Nixevol
2026-10-24 23:16:08 +08:00
parent cea741eead
commit 7253217e18
4 changed files with 27 additions and 19 deletions
+3 -3
View File
@@ -164,7 +164,7 @@ const downloadRef = ref<{
loadDirectory: () => Promise<void>;
} | null>(null);
const catalogQuery = ref("");
const catalogMaxPages = ref(300);
const catalogMaxPages = ref(99);
let catalogPagesTimer: number | null = null;
const mainMenu = computed(() => [
{ label: "视频清单", key: "download" },
@@ -402,7 +402,7 @@ function normalizeWorkers(value: unknown) {
function normalizeCatalogPages(value: unknown) {
const count = Number(value);
if (!Number.isInteger(count) || count < 1) return 300;
if (!Number.isInteger(count) || count < 1) return 99;
return Math.min(count, 999);
}
@@ -414,7 +414,7 @@ async function loadCatalogSettings() {
const payload = await response.json();
catalogMaxPages.value = normalizeCatalogPages(payload.max_pages);
} catch {
catalogMaxPages.value = 300;
catalogMaxPages.value = 99;
}
}