我不想要自定义页面。我只想重定向到索引页。
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
<NotFound>
@* go to site base *@
</NotFound>
</Router>发布于 2020-07-01 10:31:56
我终于在这里找到了答案(在found和NotFound Templates部分):https://chrissainty.com/introduction-to-routing-in-blazor/
https://stackoverflow.com/questions/62668595
复制相似问题