diff --git a/src/views/components/ConditionTags.vue b/src/views/components/ConditionTags.vue
index 92c51290..c85ada38 100644
--- a/src/views/components/ConditionTags.vue
+++ b/src/views/components/ConditionTags.vue
@@ -45,6 +45,7 @@ limitations under the License. -->
trigger="contextmenu"
:hide-on-click="false"
style="margin: 20px 0 0 -130px"
+ v-if="tagArr.length"
>
@@ -57,7 +58,10 @@ limitations under the License. -->
-
+
>(null);
fetchTagKeys();
@@ -168,7 +172,9 @@ function selectTag(item: string) {
}
function showClick() {
- dropdownTag.value.handleOpen();
+ if (dropdownTag.value) {
+ dropdownTag.value.handleOpen();
+ }
}