This is an automated email from the ASF dual-hosted git repository. caishunfeng pushed a commit to branch 3.1.0-prepare in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
commit 280b7c85457e371e74ab7e5f757b3235f2fe436a Author: jackfanwan <[email protected]> AuthorDate: Wed Sep 21 10:05:15 2022 +0800 [Improvement] Add Set cluster name (#12074) --- .../src/views/projects/task/components/node/fields/use-namespace.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-namespace.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-namespace.ts index 983fd6506a..fc4a8925f1 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-namespace.ts +++ b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-namespace.ts @@ -31,11 +31,11 @@ export function useNamespace(): IJsonItem { loading.value = true const totalList = await getAllNamespaces() options.value = (totalList || []).map( - (item: { id: string; namespace: string; k8s: string }) => ({ - label: `${item.namespace}(${item.k8s})`, + (item: { id: string; namespace: string; clusterName: string }) => ({ + label: `${item.namespace}(${item.clusterName})`, value: JSON.stringify({ name: item.namespace, - cluster: item.k8s + cluster: item.clusterName }) }) )
