Commit 8d4c5730 authored by Bill's avatar Bill

fix: 首页跳转路由

parent e44e460c
...@@ -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;
......
...@@ -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} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment