mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 12:17:43 +08:00
[Improvement] Add Set cluster name (#12074)
This commit is contained in:
parent
ed1d1e8856
commit
7d80ea34ac
@ -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
|
||||
})
|
||||
})
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user