fix(routing): static Routes/HeadOutlet, InteractiveAuto on MainLayout, InteractiveServer on CmsLayout — Routes lived in server-only assembly and couldn't hydrate in WASM
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
@rendermode InteractiveServer
|
||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
|
|
||||||
<MudThemeProvider IsDarkMode="false" Theme="@_theme" />
|
<MudThemeProvider IsDarkMode="false" Theme="@_theme" />
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@using DeepDrftWeb.Client.Controls
|
@rendermode InteractiveAuto
|
||||||
|
@using DeepDrftWeb.Client.Controls
|
||||||
@using DeepDrftWeb.Client.Controls.AudioPlayerBar
|
@using DeepDrftWeb.Client.Controls.AudioPlayerBar
|
||||||
@using DeepDrftWeb.Client.Services
|
@using DeepDrftWeb.Client.Services
|
||||||
@using DeepDrftWeb.Client.Common
|
@using DeepDrftWeb.Client.Common
|
||||||
|
|||||||
@@ -15,11 +15,11 @@
|
|||||||
<link rel="stylesheet" href="styles/deepdrft-styles.css" />
|
<link rel="stylesheet" href="styles/deepdrft-styles.css" />
|
||||||
<ImportMap />
|
<ImportMap />
|
||||||
<link rel="icon" type="image/ico" href="deepdrft-logo.ico" />
|
<link rel="icon" type="image/ico" href="deepdrft-logo.ico" />
|
||||||
<HeadOutlet @rendermode="InteractiveAuto" />
|
<HeadOutlet />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<Routes @rendermode="InteractiveAuto" />
|
<Routes />
|
||||||
<script src="_framework/blazor.web.js"></script>
|
<script src="_framework/blazor.web.js"></script>
|
||||||
<script src=@Assets["_content/MudBlazor/MudBlazor.min.js"]></script>
|
<script src=@Assets["_content/MudBlazor/MudBlazor.min.js"]></script>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
|
|||||||
Reference in New Issue
Block a user