wangziqian %!s(int64=4) %!d(string=hai) anos
pai
achega
1ce3e60d4c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/click/overClick.vue

+ 1 - 1
src/components/click/overClick.vue

@@ -40,7 +40,7 @@ export default {
     const parent = document.getElementById(this.id)
     this.listener = document.addEventListener('click', (event) => {
       const isInner = parent.contains(event.target)
-      if (!isInner) {
+      if (!isInner && this.visible) {
         this.visible = false
         this.$emit('update:active', this.visible)
         this.$emit('overMouse')