From a0a1d659ec33818773975b8f131d3f62b45dbbb9 Mon Sep 17 00:00:00 2001 From: croire <1432593898@qq.com> Date: Sun, 17 Apr 2022 15:00:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=B6=E5=B0=94VideoSectio?= =?UTF-8?q?n=E9=87=8D=E5=A4=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi/ViewModels/ViewVideoDetailViewModel.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DownKyi/ViewModels/ViewVideoDetailViewModel.cs b/DownKyi/ViewModels/ViewVideoDetailViewModel.cs index d85dd91..dcc1e02 100644 --- a/DownKyi/ViewModels/ViewVideoDetailViewModel.cs +++ b/DownKyi/ViewModels/ViewVideoDetailViewModel.cs @@ -618,6 +618,7 @@ namespace DownKyi.ViewModels /// private void UpdateView(IInfoService videoInfoService, VideoPage param) { + // 获取视频详情 VideoInfoView = videoInfoService.GetVideoView(); if (VideoInfoView == null) { @@ -635,7 +636,16 @@ namespace DownKyi.ViewModels NoDataVisibility = Visibility.Collapsed; } + // 获取视频列表 List videoSections = videoInfoService.GetVideoSections(false); + + // 清空以前的数据 + PropertyChangeAsync(new Action(() => + { + VideoSections.Clear(); + })); + + // 添加新数据 if (videoSections == null) { LogManager.Debug(Tag, "videoSections is not exist.");