lex-xin 3 năm trước cách đây
mục cha
commit
6c94d47353
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      src/student/music/album-detail/index.tsx

+ 5 - 2
src/student/music/album-detail/index.tsx

@@ -66,8 +66,11 @@ export default defineComponent({
 
     onMounted(() => {
       nextTick(() => {
-        const { height } = useRect(headers as any)
-        heights.value = height
+        setTimeout(() => {
+          const { height } = useRect(headers as any)
+          console.log(height, 'height')
+          heights.value = height
+        }, 100)
       })
     })