Commit 82fa49ff authored by 崔佳豪's avatar 崔佳豪

fix: 站点切换spin样式

parent 85aa6229
Pipeline #54822 passed with stages
...@@ -125,7 +125,7 @@ const AllStations = props => { ...@@ -125,7 +125,7 @@ const AllStations = props => {
setDefaultTab(event.target.value); setDefaultTab(event.target.value);
}; };
return ( return (
<> <Spin spinning={props.loading} tip="加载中">
<div className={layoutStyles.focusStations}> <div className={layoutStyles.focusStations}>
<ul>{Array.isArray(data) ? data.map(item => StationsItem(item, props.action, props.setVisible, props.actionRef, props.setMenuLoading)) : null}</ul> <ul>{Array.isArray(data) ? data.map(item => StationsItem(item, props.action, props.setVisible, props.actionRef, props.setMenuLoading)) : null}</ul>
</div> </div>
...@@ -158,9 +158,8 @@ const AllStations = props => { ...@@ -158,9 +158,8 @@ const AllStations = props => {
) : ( ) : (
<div className="city_pane city_container">{props.data.citySelector}</div> <div className="city_pane city_container">{props.data.citySelector}</div>
)} )}
<Spin spinning={props.loading} tip="加载中" />
</div> </div>
</> </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