Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ protected override async Task OnErrorAsync(Exception exception)
/// <param name="builder"></param>
protected override void BuildRenderTree(RenderTreeBuilder builder)
{
#if DEBUG
// DEBUG 模式下显示异常堆栈信息到 UI 页面方便开发人员调试
if (OnErrorHandleAsync == null)
{
var ex = CurrentException ?? _exception;
Expand All @@ -77,6 +79,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
builder.AddContent(0, ExceptionContent(ex));
}
}
#endif
builder.AddContent(1, ChildContent);
}

Expand Down