Skip to content

Commit f13b574

Browse files
committed
refactor: 精简代码
1 parent 3442d05 commit f13b574

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ public partial class PdfReader
8080
[Parameter]
8181
public bool ShowPresentationMode { get; set; } = false;
8282

83-
/// <summary>
84-
/// 获得/设置 是否启用双页单视图模式 默认 false
85-
/// </summary>
86-
[Parameter]
87-
public bool EnableTwoPagesOneView { get; set; }
88-
8983
/// <summary>
9084
/// 页面初始化回调方法
9185
/// </summary>

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ export async function init(id, invoke, options) {
2727

2828
loadingTask.onPassword = function (updatePassword, reason) {
2929
if (reason === pdfjsLib.PasswordResponses.NEED_PASSWORD) {
30-
const password = prompt("This PDF is password protected. Enter password:");
31-
updatePassword(password);
30+
3231
}
3332
else if (reason === pdfjsLib.PasswordResponses.INCORRECT_PASSWORD) {
34-
const password = prompt("Incorrect password. Please try again:");
35-
updatePassword(password);
33+
3634
}
3735
};
3836

0 commit comments

Comments
 (0)