Skip to content

Commit

Permalink
屏蔽修改联动刷新中没有数据集时的报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NoneDay committed Jan 19, 2022
1 parent 2863f8a commit a47d600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion end/reportWeb/Pages/ReportModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ private void parse_fresh_ds()
}
}
reportDefineForWeb.CurrentReportDefine.calcGridNames = calcGridNames?.ToArray();
reportDefineForWeb.CurrentReportDefine.calcDsNames = new HashSet<String>( calcDsNames );
if (calcDsNames != null)
reportDefineForWeb.CurrentReportDefine.calcDsNames = new HashSet<String>( calcDsNames );
}
protected internal ReportDefineForWeb reportDefineForWeb;
public async Task output()
Expand Down
3 changes: 2 additions & 1 deletion end/reportWeb/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env,ReportDbC
try
{
var m = MessageQueueBlock<DemoMessage>.Take();//Client(m.ConnectionId)
await m.hubContext.Clients.Client(m.ConnectionId)?.SendAsync("ReceiveMessage",m.ConnectionId,m.Body);
if (m.ConnectionId != null)
await m.hubContext.Clients.Client(m.ConnectionId)?.SendAsync("ReceiveMessage",m.ConnectionId,m.Body);
}
catch (Exception ex)
{
Expand Down

0 comments on commit a47d600

Please sign in to comment.