fix: cause error when search inside value

This commit is contained in:
tiny-craft 2023-08-24 01:34:42 +08:00
parent 95e48e75d3
commit 7135ae4096
3 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ const props = defineProps({
value: Object, value: Object,
}) })
const filterOption = computed(() => [ const filterOption = [
{ {
value: 1, value: 1,
label: i18n.t('field'), label: i18n.t('field'),
@ -30,7 +30,7 @@ const filterOption = computed(() => [
value: 2, value: 2,
label: i18n.t('value'), label: i18n.t('value'),
}, },
]) ]
const filterType = ref(1) const filterType = ref(1)
const connectionStore = useConnectionStore() const connectionStore = useConnectionStore()

View File

@ -22,7 +22,7 @@ const props = defineProps({
value: Object, value: Object,
}) })
const filterOption = computed(() => [ const filterOption = [
{ {
value: 1, value: 1,
label: i18n.t('field'), label: i18n.t('field'),
@ -31,7 +31,7 @@ const filterOption = computed(() => [
value: 2, value: 2,
label: i18n.t('value'), label: i18n.t('value'),
}, },
]) ]
const filterType = ref(1) const filterType = ref(1)
const connectionStore = useConnectionStore() const connectionStore = useConnectionStore()

View File

@ -22,7 +22,7 @@ const props = defineProps({
value: Object, value: Object,
}) })
const filterOption = computed(() => [ const filterOption = [
{ {
value: 1, value: 1,
label: i18n.t('value'), label: i18n.t('value'),
@ -31,7 +31,7 @@ const filterOption = computed(() => [
value: 2, value: 2,
label: i18n.t('score'), label: i18n.t('score'),
}, },
]) ]
const filterType = ref(1) const filterType = ref(1)
const connectionStore = useConnectionStore() const connectionStore = useConnectionStore()