Commit a8556f55 by maolipeng

fix:登陆状态判断

parent c909a465
......@@ -19,6 +19,7 @@ import CourseService from "@/domains/course-domain/CourseService";
import qrcode from "@/libs/qrcode/qrcode.js";
import Bus from '@/core/tbus';
import ClickOutside from '../../components/ClickOutside';
import _ from "underscore";
const baseImg = "https://image.xiaomaiketang.com/xm/rJeQaZxtc7.png";
const { confirm } = Modal;
......@@ -81,10 +82,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