Skip to content

Commit

Permalink
chore: Upgrade Masa.Stack.Components (#348)
Browse files Browse the repository at this point in the history
* chore : using

* debug

* 升级包

* chore: Upgrade Package

* chore: Upgrade Masa.Stack.Components
  • Loading branch information
wzh425 authored Jul 12, 2024
1 parent f0957f7 commit e2f83bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Web/Masa.Alert.Web.Admin/Masa.Alert.Web.Admin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageReference Include="Mapster" Version="7.3.0" />
<PackageReference Include="Masa.BuildingBlocks.Authentication.Identity" Version="$(MasaFrameworkPackageVersion)" />
<PackageReference Include="Masa.Contrib.SearchEngine.AutoComplete.ElasticSearch" Version="$(MasaFrameworkPackageVersion)" />
<PackageReference Include="Masa.Stack.Components" Version="0.0.464" />
<PackageReference Include="Masa.Stack.Components" Version="0.0.466" />
<PackageReference Include="Masa.Utils.Data.Elasticsearch" Version="$(MasaFrameworkPackageVersion)" />
<PackageReference Include="Masa.Contrib.StackSdks.Tsc" Version="$(MasaStackSdksPackageVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.3" />
Expand Down
5 changes: 2 additions & 3 deletions src/Web/Masa.Alert.Web.Admin/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject NavigationManager Navigation
@inject IMasaStackConfig MasaStackConfig

<SLayout OnSignOut="SignOut" OnErrorAsync="OnError" IsShowEnvironmentSwitch Class="full-height"
<SLayout OnSignOut="SignOut" OnErrorAfterHandle="OnErrorAfterHandle" IsShowEnvironmentSwitch Class="fill-height"
Logo="https://cdn.masastack.com/stack/images/logo/MASAStack/logo-h-en.png"
MiniLogo="https://cdn.masastack.com/stack/images/logo/MASAStack/logo.png"
WhiteUris="WhiteUris">
Expand All @@ -19,9 +19,8 @@

private List<string> WhiteUris = new List<string> { "alarmHistory/*" };

private Task OnError(Exception exception)
private Task OnErrorAfterHandle(Exception exception)
{
PopupService.EnqueueSnackbarAsync(exception.Message, AlertTypes.Error);
GlobalConfig.Loading = false;
GlobalConfig.ThrottleFlag = false;
return Task.CompletedTask;
Expand Down

0 comments on commit e2f83bf

Please sign in to comment.