Commit 88dbb461 by maolipeng

Merge branch 'feature/maolipeng/youhua' into rc

# Conflicts:
#	src/modules/root/Header.jsx
parents 60fae439 98b93d21
...@@ -50,7 +50,7 @@ function Header(props) { ...@@ -50,7 +50,7 @@ function Header(props) {
setStoreName(value); setStoreName(value);
}); });
getStoreList(); getStoreList();
// getTopLeftLogo() getTopLeftLogo()
}, []); }, []);
useEffect(() => { useEffect(() => {
...@@ -82,8 +82,8 @@ function Header(props) { ...@@ -82,8 +82,8 @@ function Header(props) {
} }
function getTopLeftLogo() { function getTopLeftLogo() {
if(User.getToken()){ if (User.getToken()) {
StoreService.getStoreDetail({storeId:User.getStoreId}) StoreService.getStoreDetail({storeId:User.getStoreId()})
.then(res=> { .then(res=> {
setTopLeftLogo(res.result.logo) setTopLeftLogo(res.result.logo)
}) })
...@@ -232,7 +232,7 @@ function Header(props) { ...@@ -232,7 +232,7 @@ function Header(props) {
<div id="top-container" className="top-container"> <div id="top-container" className="top-container">
<div className="top top-nav"> <div className="top top-nav">
<div> <div>
<img src="https://image.xiaomaiketang.com/xm/WEsMPAYxAs.png" className="logo" alt="" /> <img src={topLeftLogo} className="logo" alt="" />
</div> </div>
<div className="message-help"> <div className="message-help">
{list.length ? ( {list.length ? (
......
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