Commit 1b2c6202 authored by 熊成伟's avatar 熊成伟

debug

parent 8d387ab5
Pipeline #16459 passed with stages
in 1 minute and 10 seconds
...@@ -41,6 +41,7 @@ const CommonLayout = (props) => { ...@@ -41,6 +41,7 @@ const CommonLayout = (props) => {
const query = queryString.parse(props.location.search); const query = queryString.parse(props.location.search);
const keys = Object.keys(query); const keys = Object.keys(query);
keys.length > 0 && query.token && localStorage.setItem('token', query.token); keys.length > 0 && query.token && localStorage.setItem('token', query.token);
}, []); }, []);
return ( return (
<div> <div>
......
...@@ -37,6 +37,14 @@ const Footer = (props) => { ...@@ -37,6 +37,14 @@ const Footer = (props) => {
getData() getData()
}) })
}, []); }, []);
useEffect(() => {
const url = props.location.pathname;
url.indexOf('/bord/backlog') > -1 && setCurrent('backlog');
url.indexOf('/bord/work') > -1 && setCurrent('work');
url.indexOf('/bord/addressList') > -1 && setCurrent('addressList');
url.indexOf('/bord/notice') > -1 && setCurrent('notice');
}, [props]);
return ( return (
<div id="footer" className="footer"> <div id="footer" className="footer">
<TabBar <TabBar
......
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