|
|
@ -28,7 +28,7 @@ const Header = props => { |
|
|
|
const [patrolManageVisible, setPatrolManageVisible] = useState(false) |
|
|
|
const [deviceManageTabsVisible, setDeviceManageTabsVisible] = useState(false) |
|
|
|
const [currentSubMenuTab, setCurrentSubMenuTab] = useState('') |
|
|
|
const [tab, setTab] = useState('aiot') |
|
|
|
const [tab, setTab] = useState('leader') |
|
|
|
const [projectName, setProjectName ]= useState('') |
|
|
|
const [weather, setWeather] = useState([]) |
|
|
|
let headerTitleStyle = { |
|
|
@ -66,11 +66,11 @@ const Header = props => { |
|
|
|
}, []) |
|
|
|
|
|
|
|
const queryWeather = () => { |
|
|
|
// RouteRequest.get(`/query/weather/3d?location=101240101`).then(res => {
|
|
|
|
// if (res?.daily?.length === 3) {
|
|
|
|
// setWeather(res.daily)
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
RouteRequest.get(`/query/weather/3d?location=101240101`).then(res => { |
|
|
|
if (res?.daily?.length === 3) { |
|
|
|
setWeather(res.daily) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const iconSrc = useMemo(() => { |
|
|
|