Commit c6b8b6c0 authored by 崔佳豪's avatar 崔佳豪

fix: 站点少于等于1个时不现实站点选择器

parent e510ec82
Pipeline #52970 passed with stages
...@@ -158,6 +158,8 @@ const renderSite = ({ data, config, loading, setLoading, action, actionRef, setM ...@@ -158,6 +158,8 @@ const renderSite = ({ data, config, loading, setLoading, action, actionRef, setM
if (config && config.userInfo && config.userInfo.site === '') { if (config && config.userInfo && config.userInfo.site === '') {
loaded = false; loaded = false;
} }
if(!data.allStation || !_.isArray(data.allStation) || data.allStation.length <= 1)
return <></>;
return ( return (
<> <>
<Spin <Spin
......
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