Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliang-wt committed Feb 6, 2023
1 parent 9cd188c commit c8c760b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WalkingTec.Mvvm.Mvc/Filters/FrameworkFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public override void OnResultExecuted(ResultExecutedContext context)
if (context.Result is PartialViewResult pvr)
{
model = pvr.Model as BaseVM;
context.HttpContext.Response.WriteAsync($"<script>ff.ResizeChart('{model?.ViewDivId}')</script>");
context.HttpContext.Response.WriteAsync($"<script>try{{ff.ResizeChart('{model?.ViewDivId}')}}catch{{}}</script>");
}

//如果是来自Error,则已经记录过日志,跳过
Expand Down

0 comments on commit c8c760b

Please sign in to comment.