feat: UseBlazor 配置项功能移动到网站设置中

This commit is contained in:
Argo Zhang 2020-01-11 20:29:44 +08:00
parent 5e09284d83
commit ecdbe52334
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
3 changed files with 1 additions and 3 deletions

View File

@ -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);
}

View File

@ -71,7 +71,6 @@
}
}
],
"UseBlazor": true,
"SwaggerPathBase": "",
"AllowOrigins": "http://localhost:49185",
"HealthsCloudUrl": "https://client.sdgxgz.com/api/Interface/Healths",

View File

@ -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",