Skip to content

Commit

Permalink
fix(用户登录): 用户登录UI错误
Browse files Browse the repository at this point in the history
登录框消失,做配置文件获取判断

re #90
  • Loading branch information
Lind-pro committed Jun 28, 2020
1 parent 2963fea commit 2707d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/user/login2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ const Login: React.FC<Props> = props => {
callback: () => {
const title = document.getElementById('sys-title');
const icon = document.getElementById('title-icon');
if (title) {
if (title && settings.title) {
title.textContent = settings.title;
}
if (icon) {
if (icon && settings.titleIcon) {
icon.href = settings.titleIcon;
}
setIsReady(true);
Expand Down

0 comments on commit 2707d03

Please sign in to comment.