diff --git a/src/Oms.Application/Shared/OmsManagedImageHelper.cs b/src/Oms.Application/Shared/OmsManagedImageHelper.cs index 4a7b035..6e923f7 100644 --- a/src/Oms.Application/Shared/OmsManagedImageHelper.cs +++ b/src/Oms.Application/Shared/OmsManagedImageHelper.cs @@ -99,10 +99,8 @@ public static class OmsManagedImageHelper continue; } - return new FileContentResult(bytes, GuessImageMime(candidate)) - { - FileDownloadName = Path.GetFileName(candidate.Replace('\\', '/')) - }; + // 不设 FileDownloadName,避免 Content-Disposition: attachment 影响 CSS/img 内联展示 + return new FileContentResult(bytes, GuessImageMime(candidate)); } catch (UnauthorizedAccessException) {