Skip to content

Commit b977289

Browse files
committed
fix: 修复工作流调试页面选择下拉框参数,调试框被关掉错误
1 parent b11ba90 commit b977289

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ui/src/views/application-workflow/index.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/>
3636
</el-collapse-transition>
3737
<!-- 主画布 -->
38-
<div class="workflow-main">
38+
<div class="workflow-main" ref="workflowMainRef">
3939
<workflow ref="workflowRef" v-if="detail" :data="detail?.work_flow" />
4040
</div>
4141
<!-- 调试 -->
@@ -118,7 +118,7 @@ const {
118118
119119
let interval: any
120120
const workflowRef = ref()
121-
121+
const workflowMainRef = ref()
122122
const loading = ref(false)
123123
const detail = ref<any>(null)
124124
@@ -202,8 +202,7 @@ const clickShowDebug = () => {
202202
})
203203
}
204204
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)) {
207206
showDebug.value = false
208207
}
209208
}

0 commit comments

Comments
 (0)