Browse Source

展示收藏的按钮

liushengqiang 1 năm trước cách đây
mục cha
commit
fb360bfe3c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/courseware-list/index.tsx

+ 2 - 1
src/views/courseware-list/index.tsx

@@ -1,6 +1,7 @@
 import {
   computed,
   defineComponent,
+  nextTick,
   onBeforeMount,
   onMounted,
   reactive,
@@ -363,7 +364,7 @@ export default defineComponent({
 
                   <div class={styles.name}>{item.name}</div>
                   {/* 课程教材不需要收藏 */}
-                  {data.tab !== 'course' && (
+                  {!data.loading && data.tab !== 'course' && (
                     <div
                       id={index === 0 ? 'courseware-1' : ''}
                       class={styles.favoriteBtn}