Skip to content

Commit

Permalink
fix(layout): WaterMark support dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Sep 20, 2023
1 parent 7a09db5 commit 0898061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/layout/src/components/WaterMark/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export const WaterMark: React.FC<WaterMarkProps> = (props) => {
canvas.setAttribute('height', canvasHeight);

if (!ctx) {
// eslint-disable-next-line no-console
console.error('当前环境不支持Canvas');
return;
}

Expand Down Expand Up @@ -159,8 +161,6 @@ export const WaterMark: React.FC<WaterMarkProps> = (props) => {
writeContent(props.content);
return;
}
// eslint-disable-next-line no-console
console.error('当前环境不支持Canvas');
}, [
gapX,
gapY,
Expand Down

0 comments on commit 0898061

Please sign in to comment.