Skip to content

Commit

Permalink
fix: preview 组件 style 报错
Browse files Browse the repository at this point in the history
Preview 组件 style 报错
  • Loading branch information
hewx815 committed Jul 24, 2023
1 parent 8a363df commit 49b2b79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .vitepress/components/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ const mousedown = () => {
document.addEventListener('mousemove', move);
document.addEventListener('mouseup', () => {
if (!previewIcon.value) return;
previewIcon.value.style.cursor = "pointer";
document.body.style.userSelect = 'auto';
document.removeEventListener('mousemove', move);
Expand Down

0 comments on commit 49b2b79

Please sign in to comment.