feat: 客户端模拟登陆时使用本站头像
This commit is contained in:
parent
7c50c3ca6b
commit
ed5ce82486
|
@ -33,7 +33,7 @@ namespace Bootstrap.Client.Models
|
||||||
|
|
||||||
// set Icon
|
// set Icon
|
||||||
var icon = $"/{DbHelper.RetrieveIconFolderPath().Trim('~', '/')}/{user.Icon}";
|
var icon = $"/{DbHelper.RetrieveIconFolderPath().Trim('~', '/')}/{user.Icon}";
|
||||||
Icon = $"{authHost.TrimEnd('/')}{icon}";
|
Icon = string.IsNullOrEmpty(ConfigurationManager.GetValue("SimulateUserName", string.Empty)) ? $"{authHost.TrimEnd('/')}{icon}" : "/images/admin.jpg";
|
||||||
if (!string.IsNullOrEmpty(user.Css)) Theme = user.Css;
|
if (!string.IsNullOrEmpty(user.Css)) Theme = user.Css;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
Loading…
Reference in New Issue