Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
89551314
Commit
89551314
authored
Jul 07, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 登录页面logo跳转路径问题
parent
d118f91e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
UserHeader.tsx
src/layouts/components/UserHeader.tsx
+12
-1
No files found.
src/layouts/components/UserHeader.tsx
View file @
89551314
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
styles
from
'../styles/UserLayouts.less'
import
{
Row
,
Col
}
from
'antd'
;
import
{
PLATFORM_DOMAIN
}
from
'@/constants'
import
{
isString
}
from
'@/utils/type'
;
import
{
getCookie
}
from
'@/utils/cookie'
import
HeaderDropdown
from
'./HeaderDropdown'
;
...
...
@@ -36,12 +38,21 @@ const UserHeader: React.FC<UserHeaderProps> = (props) => {
}
}
const
getBackMallUrl
=
():
string
=>
{
const
mallLink
:
string
=
getCookie
(
'currentMallLink'
,
'string'
)
as
unknown
as
string
if
(
mallLink
)
{
return
mallLink
}
else
{
return
PLATFORM_DOMAIN
}
}
return
(
<
div
className=
{
styles
.
lingxiBusinessUserHeader
}
>
<
Row
className=
{
styles
.
lingxiBusinessMarginContent
}
justify=
'space-between'
align=
'middle'
style=
{
{
height
:
'100%'
}
}
>
<
Col
>
<
div
className=
{
styles
.
lingxiBusinessLogoWrap
}
>
{
isString
(
props
.
logo
)
?
<
a
href=
"/"
><
img
src=
{
props
.
logo
}
className=
{
styles
.
lingxiBusinessLogo
}
/>
</
a
>
:
props
.
logo
}
{
isString
(
props
.
logo
)
?
<
a
href=
{
getBackMallUrl
()
}
><
img
src=
{
props
.
logo
}
className=
{
styles
.
lingxiBusinessLogo
}
/>
</
a
>
:
props
.
logo
}
{
title
&&
<
div
className=
{
styles
.
lingxiBusinessUserHeaderSplit
}
></
div
>
}
...
...
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