From 64628ecf6aedf22e39c39f3ce51bf53242ef2147 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 17 Nov 2022 17:02:16 +0800 Subject: [PATCH] fix tags --- src/views/components/ConditionTags.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/components/ConditionTags.vue b/src/views/components/ConditionTags.vue index 3eb86975..408a7eac 100644 --- a/src/views/components/ConditionTags.vue +++ b/src/views/components/ConditionTags.vue @@ -92,6 +92,7 @@ const tagsList = ref([]); const tagArr = ref([]); const tagList = ref([]); const tagKeys = ref([]); +const keysList = ref([]); const visible = ref(false); const tipsMap = { LOG: "logTagsTip", @@ -137,6 +138,7 @@ async function fetchTagKeys() { } tagArr.value = resp.data.tagKeys; tagKeys.value = resp.data.tagKeys; + keysList.value = resp.data.tagKeys; searchTags(); } @@ -172,8 +174,9 @@ function selectTag(item: string) { function searchTags() { if (!tags.value) { + tagArr.value = keysList.value; + tagKeys.value = keysList.value; tagList.value = tagArr.value; - fetchTagKeys(); return; } let search = "";