Skip to content

Commit b30bb70

Browse files
committed
refactor: 重构代码
1 parent 6bd084b commit b30bb70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected override void OnParametersSet()
193193
{
194194
CurrentPage = 1;
195195
}
196-
_docTitle = ShowFileName ? Path.GetFileName(Url) : null;
196+
_docTitle = ShowFileName && !string.IsNullOrEmpty(Url) ? Path.GetFileName(Url) : null;
197197
}
198198

199199
/// <summary>

0 commit comments

Comments
 (0)