Ver código fonte

Merge branch 'local' of http://192.168.0.115:3000/bill/fuse-code into local

xzw 3 anos atrás
pai
commit
559cb8a802
1 arquivos alterados com 8 adições e 4 exclusões
  1. 8 4
      src/views/tagging/index.vue

+ 8 - 4
src/views/tagging/index.vue

@@ -159,13 +159,17 @@ watch(selectTagging, (a, b, onCleanup) => {
     const clickHandler = async (ev: MouseEvent) => {
       await nextTick()
       await asyncTimeout()
-      const positions = models.value.
-        map(model => 
-          sdk.getPositionByScreen({
+      const positions = models.value
+        .filter(model => {
+          return model.loaded && getModelShowVariable(model).value
+        })
+        .map(model => {
+          console.log(model)
+           return sdk.getPositionByScreen({
             x: ev.clientX,
             y: ev.clientY
           }, model.id)
-        )
+        })
         .filter(pos => pos)
 
       if (!positions.length) {