Skip to content

Commit 3442d05

Browse files
committed
refactor: 优化性能
1 parent 231e04e commit 3442d05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function init(id, invoke, options) {
2222

2323
const loadingTask = pdfjsLib.getDocument(options);
2424
loadingTask.onProgress = function (progressData) {
25-
console.log(progressData.loaded, progressData.total);
25+
2626
};
2727

2828
loadingTask.onPassword = function (updatePassword, reason) {
@@ -217,7 +217,7 @@ const resetThumbnailsView = (el, pdfViewer) => {
217217
group.appendChild(img);
218218

219219
const label = document.createElement("label");
220-
label.innerHTML = `${i + 1}`;
220+
label.textContent = `${i + 1}`;
221221
group.appendChild(label);
222222

223223
item.appendChild(group);

0 commit comments

Comments
 (0)