fix: import axiosClient

This commit is contained in:
puri-ph4tt 2023-11-29 17:55:23 +07:00 committed by Methapon2001
parent 37d0b08b11
commit 7749a1ccef
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 5 additions and 8 deletions

View file

@ -1,12 +1,12 @@
<script setup lang="ts">
import axios from 'axios'
import { ref } from 'vue'
import { storeToRefs } from 'pinia'
import axiosClient from '@/services/HttpService'
import type { EhrFile } from '@/stores/tree-data'
import { useSearchDataStore } from '@/stores/searched-data'
import { useLoader } from '@/stores/loader'
import AdvancedSearch from '@/modules/01_user/components/AdvancedSearch.vue'
const loaderStore = useLoader()
@ -67,7 +67,7 @@ async function searchSubmit() {
try {
loaderStore.show()
const res = await axios.post<EhrFile[]>(
const res = await axiosClient.post<EhrFile[]>(
`${import.meta.env.VITE_API_ENDPOINT}/search`,
submitSearchData.value
)