diff --git a/frontend/src/components/EnvIndicator/EnvIndicator.vue b/frontend/src/components/EnvIndicator/EnvIndicator.vue index 8bc8a44..ad8e819 100644 --- a/frontend/src/components/EnvIndicator/EnvIndicator.vue +++ b/frontend/src/components/EnvIndicator/EnvIndicator.vue @@ -76,6 +76,8 @@ watch(node_id, async () => { .env-name { max-width: 50px; + text-overflow: ellipsis; + white-space: nowrap; } .ant-tag { diff --git a/frontend/src/components/StdDataDisplay/StdCurd.vue b/frontend/src/components/StdDataDisplay/StdCurd.vue index 4d47361..d4a7a41 100644 --- a/frontend/src/components/StdDataDisplay/StdCurd.vue +++ b/frontend/src/components/StdDataDisplay/StdCurd.vue @@ -116,7 +116,7 @@ const ok = async () => { message.success($gettext('Save Successfully')) Object.assign(data, r) get_list() - + visible.value = false }).catch((e: any) => { message.error($gettext(e?.message ?? 'Server error'), 5) Object.assign(error, e.errors) diff --git a/server/internal/analytic/node.go b/server/internal/analytic/node.go index bf8671c..46cc429 100644 --- a/server/internal/analytic/node.go +++ b/server/internal/analytic/node.go @@ -57,11 +57,9 @@ func GetNode(env *model.Environment) (n *Node) { } n, ok := NodeMap[env.ID] if !ok { - n = &Node{ - Environment: env, - } + n = &Node{} } - + n.Environment = env return n }