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
linweijiong
jinfa-platform
Commits
8d4c5730
Commit
8d4c5730
authored
Aug 06, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 首页跳转路由
parent
e44e460c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app.tsx
src/app.tsx
+2
-1
RightContent.tsx
src/layouts/components/RightContent.tsx
+1
-1
No files found.
src/app.tsx
View file @
8d4c5730
...
@@ -120,9 +120,10 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
...
@@ -120,9 +120,10 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
const
breadCrumb
=
matchedRoutes
.
slice
(
2
).
reduce
((
prev
,
current
)
=>
{
const
breadCrumb
=
matchedRoutes
.
slice
(
2
).
reduce
((
prev
,
current
)
=>
{
return
prev
+=
"."
+
current
.
route
.
name
return
prev
+=
"."
+
current
.
route
.
name
},
'menu'
)
},
'menu'
)
console
.
log
(
breadCrumb
);
if
(
breadCrumb
)
{
recent
.
put
(
breadCrumb
,
location
.
pathname
+
location
.
search
);
recent
.
put
(
breadCrumb
,
location
.
pathname
+
location
.
search
);
}
}
}
// if (isDev) {
// if (isDev) {
// return;
// return;
...
...
src/layouts/components/RightContent.tsx
View file @
8d4c5730
...
@@ -110,7 +110,7 @@ const GlobalHeaderRight: React.FC<{ SiteStore?: any, isHome: boolean }> = (props
...
@@ -110,7 +110,7 @@ const GlobalHeaderRight: React.FC<{ SiteStore?: any, isHome: boolean }> = (props
return
(
return
(
<
div
className=
{
className
}
>
<
div
className=
{
className
}
>
<
div
>
<
div
>
<
Link
to=
{
"/"
}
className=
{
styles
.
container
}
style=
{
isHome
?
cacheStyle
.
isHome
:
{}
}
>
<
Link
to=
{
"/
memberCenter/home
"
}
className=
{
styles
.
container
}
style=
{
isHome
?
cacheStyle
.
isHome
:
{}
}
>
{
{
isHome
&&
(
isHome
&&
(
<
img
src=
{
GlobalConfig
.
global
.
siteInfo
.
logo
}
style=
{
cacheStyle
.
iamge
}
/>
<
img
src=
{
GlobalConfig
.
global
.
siteInfo
.
logo
}
style=
{
cacheStyle
.
iamge
}
/>
...
...
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