caner 2 years ago
parent
commit
898e6eaa0e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/App.vue

+ 2 - 0
src/App.vue

@@ -21,6 +21,7 @@ function capBoxMove(e: any) {
         capBox.value.width = '0px'
         capBox.value.height = '0px'
         capBox.value.display = 'none'
+        toolStyle.value.display='none'
     }
 
     document.onmousemove = em => {
@@ -28,6 +29,7 @@ function capBoxMove(e: any) {
         const y = em.clientY - sy
         if (who === 'screen') {
             // 画框
+            toolStyle.value.display = 'flex'
             capBox.value.display = 'block'
             capBox.value.width = x + 'px'
             capBox.value.height = y + 'px'