From bef07487283d2b429985191623a18e7d8c456c22 Mon Sep 17 00:00:00 2001 From: sunhonglei Date: Fri, 7 Feb 2025 14:37:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BE=93=E5=87=BAcsv=20=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SparkClient.csproj | 4 ++++ ViewModel/Grading/GradingResultVM.cs | 2 +- csv/histroy.csv | 0 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 csv/histroy.csv diff --git a/SparkClient.csproj b/SparkClient.csproj index 200c258..c60e2e5 100644 --- a/SparkClient.csproj +++ b/SparkClient.csproj @@ -34,6 +34,7 @@ + @@ -62,6 +63,9 @@ + + Always + Always diff --git a/ViewModel/Grading/GradingResultVM.cs b/ViewModel/Grading/GradingResultVM.cs index 1271f5d..a3a3a7e 100644 --- a/ViewModel/Grading/GradingResultVM.cs +++ b/ViewModel/Grading/GradingResultVM.cs @@ -266,7 +266,7 @@ public class GradingResultVM : BaseViewModel private void SaveToCsv() { string strBaseUrl = AppDomain.CurrentDomain.BaseDirectory; - string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "histroy.csv"); + string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"csv", "histroy.csv"); if (File.Exists(filePath)) { using (var writer = new StreamWriter(filePath,true)) { diff --git a/csv/histroy.csv b/csv/histroy.csv new file mode 100644 index 0000000..e69de29