Skip to content

Commit

Permalink
when list count greater than 0 not search data on tabs changed in Hom…
Browse files Browse the repository at this point in the history
…e Page
  • Loading branch information
ShaoHans committed Nov 6, 2024
1 parent 15b6b46 commit d6eebe4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions samples/CRM.Blazor.Web/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,16 @@
case 0:
break;
case 1:
await GetStargazersAsync(0, pageSize);
if (stargazers.Count <= 0)
{
await GetStargazersAsync(0, pageSize);
}
break;
case 2:
await LoadCommits(new LoadDataArgs());
if (commits.Count <= 0)
{
await LoadCommits(new LoadDataArgs());
}
break;
}
}
Expand Down

0 comments on commit d6eebe4

Please sign in to comment.