Commit 69f3c61e authored by 崔佳豪's avatar 崔佳豪

perf: 只有一个行业时不能回到引导页

parent e013e05f
Pipeline #48427 skipped with stages
......@@ -275,7 +275,11 @@ const Layout = props => {
const handlerIndustry = event => {
props.global.get('userInfo.site') ? history.push(`/industry`) : void 0;
props.global.get('userInfo.site') &&
props.global.get('userInfo.Industries') &&
props.global.get('userInfo.Industries').length > 1
? history.push(`/industry`)
: void 0;
};
const handlerCollapsed = () => {
......
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