From e691f2ecede6a962dfa76bb4a494ac1c80c9a389 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期六, 10 九月 2022 00:05:58 +0800
Subject: [PATCH] 设备点检记录导出接口去掉分页参数,设备保养记录查询、明细查询、导出(接口开发)

---
 VueWebApi/App_Start/Startup.cs |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/VueWebApi/App_Start/Startup.cs b/VueWebApi/App_Start/Startup.cs
index 368ac6c..6f90119 100644
--- a/VueWebApi/App_Start/Startup.cs
+++ b/VueWebApi/App_Start/Startup.cs
@@ -15,10 +15,37 @@
         {
             // 鏈夊叧濡備綍閰嶇疆搴旂敤绋嬪簭鐨勮缁嗕俊鎭紝璇疯闂� https://go.microsoft.com/fwlink/?LinkID=316888
             //鍏佽璺ㄥ煙
-            app.UseCors(CorsOptions.AllowAll);
+            //app.UseCors(CorsOptions.AllowAll);
             //app.MapSignalR("Hubs/chatHub", new HubConfiguration());
-            app.MapSignalR();
+            //app.MapSignalR();
             //鑷繁璁惧畾璁块棶璺緞锛屽悓鏃惰缃瓾ub閰嶇疆椤癸紝鏃犻渶鎸囧畾鍚姩鐨凥ub绫伙紝鍥犱负瀹冧滑琚嚜鍔ㄨ瘑鍒�
+
+            // 杩炴帴鏍囪瘑
+            //app.Map("/signalr", map =>
+            //{
+            //     //璺ㄥ煙
+            //    map.UseCors(CorsOptions.AllowAll);
+            //    var hubConfiguration = new HubConfiguration
+            //    {
+            //        EnableJSONP = true
+            //    };
+            //     //鍚姩閰嶇疆
+            //     map.RunSignalR(hubConfiguration);
+            //});
+
+
+            // 杩炴帴鏍囪瘑
+            app.Map("/signalr", map =>
+            {
+                //璺ㄥ煙
+                map.UseCors(CorsOptions.AllowAll);
+                var hubConfiguration = new HubConfiguration
+                {
+                    EnableJSONP = true
+                };
+                //鍚姩閰嶇疆
+                map.RunSignalR(hubConfiguration);
+            });
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3