From c2dd0fc59414f3e8e409271923daa4a1c8ecebbb Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Mon, 25 Jul 2022 16:04:12 +0800 Subject: [PATCH] fix tag value --- src/views/components/ConditionTags.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/components/ConditionTags.vue b/src/views/components/ConditionTags.vue index 5918a0b8..5a9b0b72 100644 --- a/src/views/components/ConditionTags.vue +++ b/src/views/components/ConditionTags.vue @@ -169,7 +169,8 @@ async function fetchTagValues() { function selectTag(item: string) { dropdownTag.value.handleClose(); if (tags.value.includes("=")) { - tags.value += item; + const key = tags.value.split("=")[0]; + tags.value = key + "=" + item; addLabels(); tagArr.value = tagKeys.value; searchTags();