From 1f81070eaf166cd283d28b05d97f760b30fa2af4 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Mon, 18 Sep 2023 01:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=A8=8B=E5=BA=8F=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E5=85=A8=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebTest/MainWindow.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebTest/MainWindow.xaml.cs b/WebTest/MainWindow.xaml.cs index 5d72d9c..c9ac554 100644 --- a/WebTest/MainWindow.xaml.cs +++ b/WebTest/MainWindow.xaml.cs @@ -87,7 +87,7 @@ private string registerName = "webContext"; shopService = s.ServiceProvider.GetRequiredService(); } - //Login(); + Login(); w2m.CoreWebView2InitializationCompleted = (e) => { w2m.wb2.CoreWebView2.PermissionRequested += (sender, args) => @@ -143,12 +143,12 @@ private string registerName = "webContext"; //globalContext.User.ShopList = shopList; - IList departmentList = null; + IList departmentList = allDepartmentList; //var response = mdsApiService.GetShopDetailList(); //if (!response.Success) // throw new Exception(response.Msg); - departmentList = allDepartmentList?.Where(d => d.Name.Contains("供应链")).ToList(); + //departmentList = allDepartmentList?.Where(d => d.Name.Contains("供应链")).ToList(); if (departmentList.Count == 0) throw new Exception("缺少有效的部门数据");