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

fix: 站点数量判断

parent b9477951
Pipeline #48463 passed with stages
in 2 minutes 14 seconds
......@@ -172,7 +172,7 @@ const renderSite = ({ data, config, loading, setLoading, action }) => {
onVisibleChange={visible => setVisible(visible)}
>
{
Array.isArray(data.allStation) && Array.isArray(data.allStation).length > 1 ? (
Array.isArray(data.allStation) && data.allStation.length > 1 ? (
<div className={layoutStyles.toggleSite}>
<img src={require('../assets/basic/site.png')} className={layoutStyles.site} />
<span className={layoutStyles.name}>{data.currentStationName}</span>
......
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