feat(前端界面): 未打开文件时页码统一显示为0/0
build.yaml / build (push) Successful in 37s

This commit is contained in:
xiaoqidun committed 2026-09-10 16:47:12 +08:00
1 parent 647f742d9c
commit c4632b3418
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2515,7 +2515,7 @@ function updateControls() {
el.nextButton.disabled = !hasDoc || state.pageIndex >= pageCount - 1;
el.pageInput.disabled = !hasDoc;
el.pageInput.max = String(pageCount || 1);
el.pageInput.value = String(hasDoc ? state.pageIndex + 1 : 1);
el.pageInput.value = String(hasDoc ? state.pageIndex + 1 : 0);
el.zoomOutButton.disabled = !hasDoc || state.scale <= 0.2;
el.zoomInButton.disabled = !hasDoc || state.scale >= 4;
el.fitButton.disabled = !hasDoc;