Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
f07114e0
Commit
f07114e0
authored
Sep 13, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 头部名称logo取pass平台配置内容
parent
4d76881e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Logo.tsx
src/layouts/components/Logo.tsx
+4
-6
No files found.
src/layouts/components/Logo.tsx
View file @
f07114e0
import
React
,
{
useEffect
,
useState
}
from
'react'
import
styles
from
'../index.less'
import
logo
from
'@/asserts/logo.svg'
import
logoSmall
from
'@/asserts/logo-small.svg'
import
{
observer
}
from
'mobx-react'
import
{
store
}
from
'@/store'
import
{
GlobalConfig
}
from
'@/global/config'
;
const
{
indexStore
}
=
store
const
logoEle
:
React
.
FC
<
{}
>
=
()
=>
{
...
...
@@ -19,11 +17,11 @@ const logoEle: React.FC<{}> = () => {
<
p
>
{
showSmall
?
<
img
src=
{
logoSmall
}
alt=
"瓴犀"
/>
<
img
src=
{
GlobalConfig
.
site
.
siteInfo
.
logo
}
alt=
"瓴犀"
/>
:
<>
<
img
src=
{
logo
}
alt=
"瓴犀"
/>
<
span
>
平台后台
</
span
>
<
img
src=
{
GlobalConfig
.
site
.
siteInfo
.
logo
}
alt=
"瓴犀"
/>
<
span
>
{
GlobalConfig
.
site
.
siteInfo
.
name
}
</
span
>
</>
}
</
p
>
...
...
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