调整文件
parent
aeb4ce84ed
commit
d4b88cf515
@ -1,12 +0,0 @@
|
||||
<Router AppAssembly="@typeof(App).Assembly">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||
</Found>
|
||||
<NotFound>
|
||||
<PageTitle>Not found</PageTitle>
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p role="alert">Sorry, there's nothing at this address.</p>
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
@ -1,3 +0,0 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<main> @Body </main>
|
@ -1,3 +1,3 @@
|
||||
@page "/"
|
||||
|
||||
<h1>Hello, world!</h1>
|
||||
<h1>ServerApp Hello!</h1>
|
||||
|
@ -1,4 +1,7 @@
|
||||
@using Microsoft.AspNetCore.Components.Routing
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using Microsoft.JSInterop
|
||||
|
||||
@using BlazorSharedDemo.SharedUI;
|
||||
|
||||
@using BlazorSharedDemo.ServerApp
|
||||
|
Loading…
Reference in New Issue