Browse Source

:twisted_rightwards_arrows: Merge branch 'dev_base' into online_kid

zhanghe 6 years ago
parent
commit
d5e875c37e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/stage/index/scene/CLScene.js

+ 5 - 1
src/stage/index/scene/CLScene.js

@@ -211,7 +211,11 @@ class CLScene extends scene {
             }
 
             // 设置顶部名称
-            document.getElementById('name-text').textContent = res.data.name || '未知';
+            let sceneName = res.data.name || '';
+            if (this.sceneType === 'collection') {
+              sceneName = '课程收藏';
+            }
+            document.getElementById('name-text').textContent = sceneName;
 
             // 渲染标签列表
             if (!res.data || !res.data.list || res.data.list.length < 1) {