Commit 28f1ee66 authored by 崔佳豪's avatar 崔佳豪

fix: modify

parent abbd2d83
...@@ -299,9 +299,11 @@ const BasicLayout = props => { ...@@ -299,9 +299,11 @@ const BasicLayout = props => {
currentChildrenRoute && currentChildrenRoute.routes ? setChildrenRoutes(currentChildrenRoute.routes): setChildrenRoutes([currentChildrenRoute]); currentChildrenRoute && currentChildrenRoute.routes ? setChildrenRoutes(currentChildrenRoute.routes): setChildrenRoutes([currentChildrenRoute]);
} else { } else {
let url = _.isString(props.global.get('homepage')) let url = props.global && props.global.hasOwnProperty('get') && props.global.get('homepage')
? _.isString(props.global.get('homepage'))
? props.global.get('homepage') ? props.global.get('homepage')
: props.global.get('homepage.url'); : props.global.get('homepage.url')
: '';
if(!props.global.get('home')) { if(!props.global.get('home')) {
url = `civweb4/${url.replace(/^\//, '').replace(/^civweb4\//, '')}` url = `civweb4/${url.replace(/^\//, '').replace(/^civweb4\//, '')}`
} }
......
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