新增 忽略项
This commit is contained in:
parent
99f7601184
commit
16d058d2b9
|
|
@ -364,4 +364,6 @@ FodyWeavers.xsd
|
|||
|
||||
|
||||
VideoAnalysis/AICore/_Static/
|
||||
VideoAnalysisCore/AICore/_Static/
|
||||
VideoAnalysisCore/AICore/_Static/
|
||||
VideoAnalysis/WebUI/node_modules/
|
||||
VideoAnalysis/WebUI/dist/
|
||||
|
|
|
|||
|
|
@ -55,4 +55,8 @@
|
|||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="WebUI\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ namespace Learn.VideoAnalysis
|
|||
|
||||
_ = app.Services.GetRequiredService<RedisInit>();
|
||||
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<Learn.VideoAnalysis.Components.App>()
|
||||
.AddInteractiveServerRenderMode();
|
||||
//.AddInteractiveWebAssemblyRenderMode()
|
||||
//.AddAdditionalAssemblies(typeof(VideoAnalysisRazor._Imports).Assembly);
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
|
||||
//自定义 应用
|
||||
app.UseCorsExpand();
|
||||
app.UseSqlSugarExpand();
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ namespace VideoAnalysisCore.Common
|
|||
/// 文件下载路径
|
||||
/// </summary>
|
||||
public static string TaskCachedFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TaskCachedFile");
|
||||
public static string WebUIFile = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebUIFile");
|
||||
|
||||
/// <summary>
|
||||
/// 模型地址
|
||||
|
|
|
|||
Loading…
Reference in New Issue