diff --git a/Services/client/src/modules/01_user/components/SearchBar.vue b/Services/client/src/modules/01_user/components/SearchBar.vue index 94e8ff2..ccfaea8 100644 --- a/Services/client/src/modules/01_user/components/SearchBar.vue +++ b/Services/client/src/modules/01_user/components/SearchBar.vue @@ -2,6 +2,7 @@ import { ref, watch } from 'vue' import { storeToRefs } from 'pinia' import axiosClient from '@/services/HttpService' +import mime from 'mime' import type { EhrFile } from '@/stores/tree-data' import { useSearchDataStore } from '@/stores/searched-data' @@ -55,7 +56,7 @@ async function searchSubmit() { }) submitSearchData.value.OR.push({ field: 'fileType', - value: searchData.value.value, + value: mime.getType(searchData.value.value) || '', }) } else { submitSearchData.value.OR.push({ @@ -125,10 +126,6 @@ watch( } }, ) - -function test() { - alert('helloooo') -}