fix: 🐛 tinymce editor css 加载路径错误 (#93)

This commit is contained in:
2024-02-27 09:33:06 +08:00
committed by GitHub
parent bde9fb1ea2
commit 5fe73878a2
3 changed files with 11 additions and 11 deletions

View File

@ -38,7 +38,7 @@ public static class IApplicationBuilderExtensions
private static async Task UseVueAdminAsync(HttpContext context, Func<Task> next)
{
if (!context.Request.Path.StartsWithSegments(new PathString("/api"))) {
var path = context.Request.Path.Value;
var path = context.Request.Path.Value?.Replace("-", "_");
if (path == "/" || path?.Length == 0) {
path = _INDEX_HTML_PATH;
}

View File

@ -12,7 +12,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<ItemGroup Condition="'$(Configuration)' != 'Debug'">
<EmbeddedResource Include="../../../dist/frontend/admin/**/*" LinkBase="UI"/>
</ItemGroup>
</Project>