Files
CartriX/CartriX.Web/Pages/IframePagePage.razor
T
2026-05-22 01:21:04 +09:00

23 lines
452 B
Plaintext

@page "/IframePage"
<iframe src="@iframeUrl" style="width: 100%; height: 100%; border: none;" />
@code {
[SupplyParameterFromQuery]
public string? url { get; set; }
private string iframeUrl = "";
protected override void OnInitialized()
{
if (!string.IsNullOrEmpty(url))
{
iframeUrl = url;
}
else
{
iframeUrl = "http://localhost:5197/scalar/";
}
}
}