diff --git a/track-uniapp/src/pages/scan/components/TreeCanvas.vue b/track-uniapp/src/pages/scan/components/TreeCanvas.vue index 737bf77..7c0a1cd 100644 --- a/track-uniapp/src/pages/scan/components/TreeCanvas.vue +++ b/track-uniapp/src/pages/scan/components/TreeCanvas.vue @@ -225,12 +225,12 @@ export default { .tree-movable-area { flex: 1; width: 100%; background-color: #f0f2f5; background-image: linear-gradient(#dde1e6 1px, transparent 1px), linear-gradient(90deg, #dde1e6 1px, transparent 1px); background-size: 24px 24px; } .canvas-inner { position: absolute; left: 0; top: 0; } -/* 🔧 连线 */ -.cn-line { position: absolute; height: 2px; } +/* 🔧 连线(禁止吞事件) */ +.cn-line { position: absolute; height: 2px; pointer-events: none; } .cn-line-solid { background: #9ca3af; } .cn-line-dashed { background: repeating-linear-gradient(90deg, #fdba74 0, #fdba74 6px, transparent 6px, transparent 10px); } -/* 🔧 连线箭头 */ -.cn-arrow { position: absolute; width: 0; height: 0; border-left: 6px solid #9ca3af; border-top: 4px solid transparent; border-bottom: 4px solid transparent; } +/* 🔧 连线箭头(禁止吞事件) */ +.cn-arrow { position: absolute; width: 0; height: 0; border-left: 6px solid #9ca3af; border-top: 4px solid transparent; border-bottom: 4px solid transparent; pointer-events: none; } .cn-arrow-dashed { border-left-color: #fdba74; } /* 🔧 极简卡片 160x80 */