From 58a6035addac9ea129db0bc1c17e77f343e638db Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Mon, 6 Jan 2025 13:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=8A=A5=E8=A1=A8=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E7=94=A8=E6=88=B7=E5=8F=82=E6=95=B0=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/ViewModels/UseAccountWindowViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DM_Weight/ViewModels/UseAccountWindowViewModel.cs b/DM_Weight/ViewModels/UseAccountWindowViewModel.cs index 979ccb4..fb19bf2 100644 --- a/DM_Weight/ViewModels/UseAccountWindowViewModel.cs +++ b/DM_Weight/ViewModels/UseAccountWindowViewModel.cs @@ -14,7 +14,7 @@ using System.Threading.Tasks; namespace DM_Weight.ViewModels { - public class UseAccountWindowViewModel:BindableBase,INavigationAware + public class UseAccountWindowViewModel : BindableBase, INavigationAware { private DateTime? _startDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day); @@ -93,7 +93,7 @@ namespace DM_Weight.ViewModels } public void OnNavigatedFrom(NavigationContext navigationContext) - { + { } /// @@ -103,7 +103,7 @@ namespace DM_Weight.ViewModels { get => new DelegateCommand(() => { - GridReportUtil.UserAccount(StartDate, EndDate, User.Nickname ?? ""); + GridReportUtil.UserAccount(StartDate, EndDate, User == null ? "" : User.Nickname); }); }