Commit 11213606 by maolipeng

fix:登陆状态判断

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