Commit a8556f55 by maolipeng

fix:登陆状态判断

parent c909a465
...@@ -19,6 +19,7 @@ import CourseService from "@/domains/course-domain/CourseService"; ...@@ -19,6 +19,7 @@ import CourseService from "@/domains/course-domain/CourseService";
import qrcode from "@/libs/qrcode/qrcode.js"; import qrcode from "@/libs/qrcode/qrcode.js";
import Bus from '@/core/tbus'; import Bus from '@/core/tbus';
import ClickOutside from '../../components/ClickOutside'; import ClickOutside from '../../components/ClickOutside';
import _ from "underscore";
const baseImg = "https://image.xiaomaiketang.com/xm/rJeQaZxtc7.png"; const baseImg = "https://image.xiaomaiketang.com/xm/rJeQaZxtc7.png";
const { confirm } = Modal; const { confirm } = Modal;
...@@ -81,11 +82,13 @@ function Header(props) { ...@@ -81,11 +82,13 @@ function Header(props) {
} }
function getTopLeftLogo() { function getTopLeftLogo() {
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)
}) })
} }
}
function getStoreList() { function getStoreList() {
if (!enterpriseId) return null; if (!enterpriseId) return null;
......
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