打印模板管理,设计

This commit is contained in:
zhougf committed 2024-11-05 23:27:55 +08:00
1 parent 53dfc9ef1d
commit ad932a7050
15 files changed
+283 -120

No files matched your search

+6 -1
View File
@@ -99,7 +99,12 @@ app.UseEndpoints(endpoints =>
pattern: "{controller=Home}/{action=Index}/{id?}");
endpoints.MapHub<StockTickerHub>("/stocks");
});
// 添加以下代码以确保响应是UTF-8编码
app.Use(async (context, next) =>
{
context.Response.ContentType = "text/html; charset=utf-8";
await next.Invoke();
});
app.UseWtmContext();
// Configure the HTTP request pipeline.