diff --git a/.gitignore b/.gitignore
index 6c2149d..703446e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -364,4 +364,6 @@ FodyWeavers.xsd
VideoAnalysis/AICore/_Static/
-VideoAnalysisCore/AICore/_Static/
\ No newline at end of file
+VideoAnalysisCore/AICore/_Static/
+VideoAnalysis/WebUI/node_modules/
+VideoAnalysis/WebUI/dist/
diff --git a/VideoAnalysis/Learn.VideoAnalysis.csproj b/VideoAnalysis/Learn.VideoAnalysis.csproj
index 4c77aa5..14069d8 100644
--- a/VideoAnalysis/Learn.VideoAnalysis.csproj
+++ b/VideoAnalysis/Learn.VideoAnalysis.csproj
@@ -55,4 +55,8 @@
+
+
+
+
diff --git a/VideoAnalysis/Program.cs b/VideoAnalysis/Program.cs
index 35b5d24..0d8b95d 100644
--- a/VideoAnalysis/Program.cs
+++ b/VideoAnalysis/Program.cs
@@ -126,7 +126,7 @@ namespace Learn.VideoAnalysis
_ = app.Services.GetRequiredService();
app.UseSwagger();
- app.UseSwaggerUI();
+ app.UseSwaggerUI();
app.UseExceptionHandler("/Error");
//添加wwwroot 静态目录
@@ -137,16 +137,15 @@ namespace Learn.VideoAnalysis
FileProvider = new PhysicalFileProvider(AppCommon.TaskCachedFile),
RequestPath = "/video",
});
+ app.UseStaticFiles(new StaticFileOptions
+ {
+ FileProvider = new PhysicalFileProvider(AppCommon.WebUIFile),
+ RequestPath = "/web",
+ });
app.UseAntiforgery();
- app.MapRazorComponents()
- .AddInteractiveServerRenderMode();
- //.AddInteractiveWebAssemblyRenderMode()
- //.AddAdditionalAssemblies(typeof(VideoAnalysisRazor._Imports).Assembly);
-
app.MapControllers();
-
//自定义 应用
app.UseCorsExpand();
app.UseSqlSugarExpand();
diff --git a/VideoAnalysisCore/Common/AppCommon.cs b/VideoAnalysisCore/Common/AppCommon.cs
index 7a473ce..1739404 100644
--- a/VideoAnalysisCore/Common/AppCommon.cs
+++ b/VideoAnalysisCore/Common/AppCommon.cs
@@ -64,6 +64,7 @@ namespace VideoAnalysisCore.Common
/// 鏂囦欢涓嬭浇璺緞
///
public static string TaskCachedFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TaskCachedFile");
+ public static string WebUIFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebUIFile");
///
/// 妯″瀷鍦板潃