diff --git a/uni_modules/cool-ui/components/cl-sticky/cl-sticky.uvue b/uni_modules/cool-ui/components/cl-sticky/cl-sticky.uvue index d073517..5498378 100644 --- a/uni_modules/cool-ui/components/cl-sticky/cl-sticky.uvue +++ b/uni_modules/cool-ui/components/cl-sticky/cl-sticky.uvue @@ -128,11 +128,9 @@ function getRect() { }; if (isHarmony()) { - nextTick(() => { - setTimeout(() => { - next(); - }, 300); - }); + setTimeout(() => { + next(); + }, 300); } else { next(); } diff --git a/uni_modules/cool-ui/components/cl-watermark/cl-watermark.uvue b/uni_modules/cool-ui/components/cl-watermark/cl-watermark.uvue index a54fb34..1e7d697 100644 --- a/uni_modules/cool-ui/components/cl-watermark/cl-watermark.uvue +++ b/uni_modules/cool-ui/components/cl-watermark/cl-watermark.uvue @@ -163,6 +163,9 @@ function getContainerSize(): Promise { * 绘制水印 - 使用Canvas */ async function drawWatermark() { + // 等待渲染完成 + await nextTick(); + // 获取容器尺寸 await getContainerSize();