Commit defcbfd7 authored by 邓晓峰's avatar 邓晓峰

feat: 优化站点选择器

parent 1fbd3c18
Pipeline #47982 skipped with stages
......@@ -223,6 +223,10 @@ const Layout = props => {
props.logout();
return;
}
}, [props.global]);
useEffect(() => {
if (
props.global &&
props.global.userInfo &&
......@@ -234,7 +238,7 @@ const Layout = props => {
setCityData(res);
});
}
}, [props.global]);
}, [props.global.userInfo])
const handlerPageChange = () => {
......@@ -252,7 +256,9 @@ const Layout = props => {
useEffect(() => {
window.share.event.on('updateSite', res => {
debugger
setCityData(res)
});
return () => {
......
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