Browse Source

Merge branch 'teahcer-home' into jenkins

lex 3 năm trước cách đây
mục cha
commit
e4b5c65d39

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

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