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)
       })
     })