diff --git a/ViewModel/Send/SendViewModel.cs b/ViewModel/Send/SendViewModel.cs index 3b1ed16..33e6e4e 100644 --- a/ViewModel/Send/SendViewModel.cs +++ b/ViewModel/Send/SendViewModel.cs @@ -666,7 +666,6 @@ namespace HeBianGu.App.Disk }); await Task.WhenAll(batchTasks); - // 批次间短暂延迟,避免过度占用资源 await Task.Delay(100); } @@ -700,7 +699,7 @@ namespace HeBianGu.App.Disk } // 刷新网盘空间页面以显示新上传的文件 - _explorerBehavior?.RefreshMinIOPath(CurrentMinIOPath); + //_explorerBehavior?.RefreshMinIOPath(CurrentMinIOPath); // 执行垃圾回收以释放内存 GC.Collect(); @@ -829,11 +828,11 @@ namespace HeBianGu.App.Disk FileCount = (CompleteItems.Count) + "/" + (UpLoadItems.Count + CompleteItems.Count); UpdateFileCounts(); // 刷新当前目录 - _explorerBehavior?.RefreshMinIOPath(CurrentMinIOPath); + //_explorerBehavior?.RefreshMinIOPath(CurrentMinIOPath); // 触发上传完成事件 - FileUploadCompleted?.Invoke(CurrentMinIOPath); - + //FileUploadCompleted?.Invoke(CurrentMinIOPath); + Progress = (CompleteItems.Count) / (UpLoadItems.Count + CompleteItems.Count); // 更新网盘空间页面状态 /*if (_explorerBehavior != null) {