This commit is contained in:
icssoa
2025-11-13 22:47:19 +08:00
parent 3057f6366b
commit a2dcda6d56
2 changed files with 6 additions and 5 deletions

View File

@@ -128,11 +128,9 @@ function getRect() {
};
if (isHarmony()) {
nextTick(() => {
setTimeout(() => {
next();
}, 300);
});
setTimeout(() => {
next();
}, 300);
} else {
next();
}

View File

@@ -163,6 +163,9 @@ function getContainerSize(): Promise<void> {
* 绘制水印 - 使用Canvas
*/
async function drawWatermark() {
// 等待渲染完成
await nextTick();
// 获取容器尺寸
await getContainerSize();