Skip to content

Commit

Permalink
fix: 修复工作流调试页面选择下拉框参数,调试框被关掉错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Sep 29, 2024
1 parent b11ba90 commit b977289
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ui/src/views/application-workflow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/>
</el-collapse-transition>
<!-- 主画布 -->
<div class="workflow-main">
<div class="workflow-main" ref="workflowMainRef">
<workflow ref="workflowRef" v-if="detail" :data="detail?.work_flow" />
</div>
<!-- 调试 -->
Expand Down Expand Up @@ -118,7 +118,7 @@ const {
let interval: any
const workflowRef = ref()
const workflowMainRef = ref()
const loading = ref(false)
const detail = ref<any>(null)
Expand Down Expand Up @@ -202,8 +202,7 @@ const clickShowDebug = () => {
})
}
function clickoutsideDebug(e: any) {
const Elm = e?.target?.className?.includes?.('el-select')
if (!Elm) {
if (workflowMainRef.value && e && e.target && workflowMainRef.value.contains(e?.target)) {
showDebug.value = false
}
}
Expand Down

0 comments on commit b977289

Please sign in to comment.