Skip to content

Commit 57bee82

Browse files
committed
doc: 更新静态资源路径
1 parent bbe65f3 commit 57bee82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BootstrapBlazor.Server/Controllers/WaterfallController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public async Task<IActionResult> Index([FromServices] IOptions<WebsiteOptions> o
2525
await Task.Delay(interval);
2626

2727
#if DEBUG
28-
var fileName = Path.Combine(options.Value.WebRootPath, "../../BootstrapBlazor.Shared/wwwroot/images/waterfall", $"{id}.jpeg");
28+
var fileName = Path.Combine(options.Value.WebRootPath, "images/waterfall", $"{id}.jpeg");
2929
#else
30-
var fileName = Path.Combine(options.Value.WebRootPath, "_content/BootstrapBlazor.Shared/wwwroot/images/waterfall", $"{id}.jpeg");
30+
var fileName = Path.Combine(options.Value.WebRootPath, "images/waterfall", $"{id}.jpeg");
3131
#endif
3232
return new PhysicalFileResult(fileName, "images/jpeg");
3333
}

0 commit comments

Comments
 (0)