Commit 11213606 by maolipeng

fix:登陆状态判断

parent 4650ff9a
......@@ -81,10 +81,12 @@ function Header(props) {
}
function getTopLeftLogo() {
StoreService.getStoreDetail({storeId:User.getStoreId})
.then(res=> {
setTopLeftLogo(res.result.logo)
})
if (User.getToken()) {
StoreService.getStoreDetail({storeId:User.getStoreId})
.then(res=> {
setTopLeftLogo(res.result.logo)
})
}
}
function getStoreList() {
......
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