diff --git a/src/admin/Bootstrap.Admin/Controllers/HomeController.cs b/src/admin/Bootstrap.Admin/Controllers/HomeController.cs index e0d94ba7..f79dc285 100644 --- a/src/admin/Bootstrap.Admin/Controllers/HomeController.cs +++ b/src/admin/Bootstrap.Admin/Controllers/HomeController.cs @@ -21,7 +21,7 @@ namespace Bootstrap.Admin.Controllers { var model = new HeaderBarModel(User.Identity.Name); var homeUrl = DictHelper.RetrieveHomeUrl(User.Identity.Name, model.AppId); - var useBlazor = configuration.GetValue("UseBlazor", false); + var useBlazor = DictHelper.RetrieveEnableBlazor(); return homeUrl.Equals("~/Home/Index", System.StringComparison.OrdinalIgnoreCase) ? (useBlazor ? Redirect("~/Pages") : (IActionResult)View(model)) : Redirect(homeUrl); } diff --git a/src/admin/Bootstrap.Admin/appsettings.Development.json b/src/admin/Bootstrap.Admin/appsettings.Development.json index ab4cc39f..49b3ba22 100644 --- a/src/admin/Bootstrap.Admin/appsettings.Development.json +++ b/src/admin/Bootstrap.Admin/appsettings.Development.json @@ -71,7 +71,6 @@ } } ], - "UseBlazor": true, "SwaggerPathBase": "", "AllowOrigins": "http://localhost:49185", "HealthsCloudUrl": "https://client.sdgxgz.com/api/Interface/Healths", diff --git a/src/admin/Bootstrap.Admin/appsettings.json b/src/admin/Bootstrap.Admin/appsettings.json index 42808086..de8ea9cd 100644 --- a/src/admin/Bootstrap.Admin/appsettings.json +++ b/src/admin/Bootstrap.Admin/appsettings.json @@ -62,7 +62,6 @@ ], "AppId": "BA", "UseHttps": true, - "UseBlazor": true, "SwaggerPathBase": "", "AllowOrigins": "http://localhost,http://ba.sdgxgz.cn", "HealthsCloudUrl": "https://client.sdgxgz.com/api/Interface/Healths",