From 7135ae40961789a279d48eef00276c7c6baa8f8d Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Thu, 24 Aug 2023 01:34:42 +0800 Subject: [PATCH] fix: cause error when search inside value --- frontend/src/components/content_value/ContentValueHash.vue | 4 ++-- frontend/src/components/content_value/ContentValueStream.vue | 4 ++-- frontend/src/components/content_value/ContentValueZSet.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/content_value/ContentValueHash.vue b/frontend/src/components/content_value/ContentValueHash.vue index 422b17f..8f65a06 100644 --- a/frontend/src/components/content_value/ContentValueHash.vue +++ b/frontend/src/components/content_value/ContentValueHash.vue @@ -21,7 +21,7 @@ const props = defineProps({ value: Object, }) -const filterOption = computed(() => [ +const filterOption = [ { value: 1, label: i18n.t('field'), @@ -30,7 +30,7 @@ const filterOption = computed(() => [ value: 2, label: i18n.t('value'), }, -]) +] const filterType = ref(1) const connectionStore = useConnectionStore() diff --git a/frontend/src/components/content_value/ContentValueStream.vue b/frontend/src/components/content_value/ContentValueStream.vue index e156c04..b00bf8f 100644 --- a/frontend/src/components/content_value/ContentValueStream.vue +++ b/frontend/src/components/content_value/ContentValueStream.vue @@ -22,7 +22,7 @@ const props = defineProps({ value: Object, }) -const filterOption = computed(() => [ +const filterOption = [ { value: 1, label: i18n.t('field'), @@ -31,7 +31,7 @@ const filterOption = computed(() => [ value: 2, label: i18n.t('value'), }, -]) +] const filterType = ref(1) const connectionStore = useConnectionStore() diff --git a/frontend/src/components/content_value/ContentValueZSet.vue b/frontend/src/components/content_value/ContentValueZSet.vue index 4e194cc..b409ce8 100644 --- a/frontend/src/components/content_value/ContentValueZSet.vue +++ b/frontend/src/components/content_value/ContentValueZSet.vue @@ -22,7 +22,7 @@ const props = defineProps({ value: Object, }) -const filterOption = computed(() => [ +const filterOption = [ { value: 1, label: i18n.t('value'), @@ -31,7 +31,7 @@ const filterOption = computed(() => [ value: 2, label: i18n.t('score'), }, -]) +] const filterType = ref(1) const connectionStore = useConnectionStore()