Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ca3ab405
authored
May 15, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix tab icon & title not changed (close #69)
parent
f43a810e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
web/src/App.js
+12
-1
No files found.
web/src/App.js
View file @
ca3ab405
...
@@ -9,7 +9,7 @@ import NotFound from './pages/NotFound';
...
@@ -9,7 +9,7 @@ import NotFound from './pages/NotFound';
import
Setting
from
'./pages/Setting'
;
import
Setting
from
'./pages/Setting'
;
import
EditUser
from
'./pages/User/EditUser'
;
import
EditUser
from
'./pages/User/EditUser'
;
import
AddUser
from
'./pages/User/AddUser'
;
import
AddUser
from
'./pages/User/AddUser'
;
import
{
API
,
showError
,
showNotice
}
from
'./helpers'
;
import
{
API
,
getLogo
,
getSystemName
,
showError
,
showNotice
}
from
'./helpers'
;
import
PasswordResetForm
from
'./components/PasswordResetForm'
;
import
PasswordResetForm
from
'./components/PasswordResetForm'
;
import
GitHubOAuth
from
'./components/GitHubOAuth'
;
import
GitHubOAuth
from
'./components/GitHubOAuth'
;
import
PasswordResetConfirm
from
'./components/PasswordResetConfirm'
;
import
PasswordResetConfirm
from
'./components/PasswordResetConfirm'
;
...
@@ -62,6 +62,17 @@ function App() {
...
@@ -62,6 +62,17 @@ function App() {
useEffect
(()
=>
{
useEffect
(()
=>
{
loadUser
();
loadUser
();
loadStatus
().
then
();
loadStatus
().
then
();
let
systemName
=
getSystemName
();
if
(
systemName
)
{
document
.
title
=
systemName
;
}
let
logo
=
getLogo
();
if
(
logo
)
{
let
linkElement
=
document
.
querySelector
(
"link[rel~='icon']"
);
if
(
linkElement
)
{
linkElement
.
href
=
logo
;
}
}
},
[]);
},
[]);
return
(
return
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment