You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/07 11:26:59 UTC
[dolphinscheduler] branch dev updated: [Fix-8715][UI Next][V1.0.0-Alpha] Worked out this issue with missing some data in the form of a task when continuously clicking the same task node. (#8742)
This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 6e2c2ad [Fix-8715][UI Next][V1.0.0-Alpha] Worked out this issue with missing some data in the form of a task when continuously clicking the same task node. (#8742)
6e2c2ad is described below
commit 6e2c2adcaa3320a009afa311a5efce48787a249c
Author: calvin <ji...@163.com>
AuthorDate: Mon Mar 7 19:26:50 2022 +0800
[Fix-8715][UI Next][V1.0.0-Alpha] Worked out this issue with missing some data in the form of a task when continuously clicking the same task node. (#8742)
---
.../views/projects/task/components/node/detail-modal.tsx | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx b/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx
index c547a40..cfc4286 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx
@@ -23,7 +23,8 @@ import {
watch,
nextTick,
provide,
- computed
+ computed,
+ onMounted
} from 'vue'
import { useI18n } from 'vue-i18n'
import { omit } from 'lodash'
@@ -102,12 +103,12 @@ const NodeDetailModal = defineComponent({
)
watch(
- () => props.data,
- async () => {
- if (!props.show) return
- await nextTick()
- detailRef.value.value.setValues(formatModel(props.data))
- }
+ () => [props.show, props.data],
+ async () => {
+ if (!props.show) return
+ await nextTick()
+ detailRef.value.value.setValues(formatModel(props.data))
+ }
)
return () => (