mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-05 12:30:55 +00:00
23 lines
452 B
Plaintext
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/";
|
|
}
|
|
}
|
|
}
|