lex-xin 3 년 전
부모
커밋
6c94d47353
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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)
       })
     })