From 3d6a2c0436f381b54be6caf909de5c4d55f11c46 Mon Sep 17 00:00:00 2001 From: liuwf Date: Wed, 26 Jun 2024 23:52:07 +0800 Subject: [PATCH] . --- SlnMesnac.WPF/ViewModel/IndexViewModel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SlnMesnac.WPF/ViewModel/IndexViewModel.cs b/SlnMesnac.WPF/ViewModel/IndexViewModel.cs index 77b5353..660f6d0 100644 --- a/SlnMesnac.WPF/ViewModel/IndexViewModel.cs +++ b/SlnMesnac.WPF/ViewModel/IndexViewModel.cs @@ -123,7 +123,9 @@ namespace SlnMesnac.WPF.ViewModel List list = await logoIdentifyService.GetAllRecordAsync(); if (list == null || list.Count == 0) return; - await App.Current.Dispatcher.BeginInvoke((Action)(() => + LogoIdentifyDataGrid.Clear(); + + await App.Current.Dispatcher.BeginInvoke((Action)(() => { LogoIdentifyDataGrid.Clear(); list = list.OrderByDescending(x=>x.RecordTime).ToList();