Browse Source

:bug: fix cousescene dont show cart number

zhanghe 6 years atrás
parent
commit
ca0f420d0d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/stage/index/scene/IndexScene.js

+ 2 - 0
src/stage/index/scene/IndexScene.js

@@ -1,5 +1,6 @@
 import CourseItem from '../../../component/CourseItem';
 import APIClient from '../../../util/API/APIClient';
+import ShopCartState from '../../../util/ShopCartState';
 import userDataStorage from '../../../util/userDataStorage';
 import Consts from '../../../util/Consts';
 import Utils from '../../../util/Utils';
@@ -31,6 +32,7 @@ class IndexScene extends scene {
 				//必须获取Token后才可以正常调用以下接口
 				this.loadHistoryList();
 				this.loadTerminal();
+				ShopCartState.updateCount();
 
 				//记录用户登录行为
 				let {status, data} = CommandBus.execute({