lex-xin hace 3 años
padre
commit
6c94d47353
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  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)
       })
     })