lex пре 2 година
родитељ
комит
18e5374657
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      src/views/shop-mall/components/TheHomeHeader/index.tsx

+ 4 - 2
src/views/shop-mall/components/TheHomeHeader/index.tsx

@@ -41,8 +41,10 @@ export default defineComponent({
 
     onMounted(() => {
       nextTick(() => {
-        const { height } = useRect(homeHeaderDom as any)
-        emit('headerDom', height)
+        setTimeout(() => {
+          const { height } = useRect(homeHeaderDom as any)
+          emit('headerDom', height)
+        }, 300)
       })
     })