File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
ui/src/views/application-workflow Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 35
35
/>
36
36
</el-collapse-transition >
37
37
<!-- 主画布 -->
38
- <div class =" workflow-main" >
38
+ <div class =" workflow-main" ref = " workflowMainRef " >
39
39
<workflow ref =" workflowRef" v-if =" detail" :data =" detail?.work_flow" />
40
40
</div >
41
41
<!-- 调试 -->
@@ -118,7 +118,7 @@ const {
118
118
119
119
let interval: any
120
120
const workflowRef = ref ()
121
-
121
+ const workflowMainRef = ref ()
122
122
const loading = ref (false )
123
123
const detail = ref <any >(null )
124
124
@@ -202,8 +202,7 @@ const clickShowDebug = () => {
202
202
})
203
203
}
204
204
function clickoutsideDebug(e : any ) {
205
- const Elm = e ?.target ?.className ?.includes ?.(' el-select' )
206
- if (! Elm ) {
205
+ if (workflowMainRef .value && e && e .target && workflowMainRef .value .contains (e ?.target )) {
207
206
showDebug .value = false
208
207
}
209
208
}
You can’t perform that action at this time.
0 commit comments