feat: UseBlazor 配置项功能移动到网站设置中
This commit is contained in:
parent
5e09284d83
commit
ecdbe52334
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,6 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"UseBlazor": true,
|
||||
"SwaggerPathBase": "",
|
||||
"AllowOrigins": "http://localhost:49185",
|
||||
"HealthsCloudUrl": "https://client.sdgxgz.com/api/Interface/Healths",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue