fix authorize
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
DefaultValue="umi ui"
|
||||
Options="DefaultOptions" />
|
||||
</SpaceItem> *@
|
||||
<SpaceItem>
|
||||
<Text Type="TextElementType.Warning">@handler</Text>
|
||||
</SpaceItem>
|
||||
<SpaceItem>
|
||||
<AntDesign.Tooltip Title="@("Help")" Placement="@Placement.Bottom">
|
||||
<Unbound>
|
||||
@@ -62,6 +65,8 @@
|
||||
|
||||
|
||||
@code {
|
||||
string handler = "Server";
|
||||
|
||||
private ErrorBoundary? _errorBoundary;
|
||||
|
||||
private void ResetError(Exception ex)
|
||||
@@ -105,6 +110,14 @@
|
||||
|
||||
protected async override Task OnInitializedAsync()
|
||||
{
|
||||
if (OperatingSystem.IsBrowser())
|
||||
{
|
||||
handler = "Wasm";
|
||||
}
|
||||
else
|
||||
{
|
||||
handler = "Server";
|
||||
}
|
||||
|
||||
var url = "/api/menu/tree";
|
||||
var apiResult = await HttpService.Get<ApiResult<List<MenuDataItem>>>(url);
|
||||
|
||||
Reference in New Issue
Block a user