Browse Source

feat:登录跳转驾驶舱

master
zhaobing 9 months ago
parent
commit
f6adae55c0
  1. 12
      web-screen/client/src/layout/components/header/index.js
  2. 2
      web-screen/client/src/layout/reducers/tab.js

12
web-screen/client/src/layout/components/header/index.js

@ -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(() => {

2
web-screen/client/src/layout/reducers/tab.js

@ -3,7 +3,7 @@
import Immutable from 'immutable';
const initState = {
tab: 'aiot',
tab: 'leader',
showCG: true
};

Loading…
Cancel
Save