优化
This commit is contained in:
@@ -128,11 +128,9 @@ function getRect() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (isHarmony()) {
|
if (isHarmony()) {
|
||||||
nextTick(() => {
|
setTimeout(() => {
|
||||||
setTimeout(() => {
|
next();
|
||||||
next();
|
}, 300);
|
||||||
}, 300);
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,6 +163,9 @@ function getContainerSize(): Promise<void> {
|
|||||||
* 绘制水印 - 使用Canvas
|
* 绘制水印 - 使用Canvas
|
||||||
*/
|
*/
|
||||||
async function drawWatermark() {
|
async function drawWatermark() {
|
||||||
|
// 等待渲染完成
|
||||||
|
await nextTick();
|
||||||
|
|
||||||
// 获取容器尺寸
|
// 获取容器尺寸
|
||||||
await getContainerSize();
|
await getContainerSize();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user