Commit 85c43d18 authored by 崔佳豪's avatar 崔佳豪

perf: 云平台用户有2个以上行业才能返回引导页

parent 39e55d06
Pipeline #53653 passed with stages
......@@ -318,7 +318,14 @@ const Layout = (props) => {
const onMenuHeaderClick = event => {
props.global.get('userInfo.site') ? history.push(`/industry`) : void 0;
// 非云平台不做响应
if(!props.global.get('userInfo.site')) return;
// 至少2个行业才能回到引导页
const Industries = props.global.get('userInfo.Industries');
if(Industries && Industries.length > 1) {
history.push(`/industry`)
}
};
// useEffect(async () => {
// setMenuLoading(false);
......
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