Commit 8d4c5730 authored by Bill's avatar Bill

fix: 首页跳转路由

parent e44e460c
......@@ -120,8 +120,9 @@ export function onRouteChange({ routes, matchedRoutes, location, action }) {
const breadCrumb = matchedRoutes.slice(2).reduce((prev, current) => {
return prev += "." + current.route.name
}, 'menu')
console.log(breadCrumb);
recent.put(breadCrumb, location.pathname + location.search);
if (breadCrumb) {
recent.put(breadCrumb, location.pathname + location.search);
}
}
// if (isDev) {
......
......@@ -110,7 +110,7 @@ const GlobalHeaderRight: React.FC<{ SiteStore?: any, isHome: boolean }> = (props
return (
<div className={className}>
<div>
<Link to={"/"} className={styles.container} style={isHome ? cacheStyle.isHome : {}}>
<Link to={"/memberCenter/home"} className={styles.container} style={isHome ? cacheStyle.isHome : {}}>
{
isHome && (
<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