hrms-edm/Services/client/src/stores/searched-data.ts
2023-11-30 09:35:12 +07:00

20 lines
471 B
TypeScript

import { ref } from 'vue'
import { defineStore } from 'pinia'
import type { EhrFile } from '@/stores/tree-data'
export const useSearchDataStore = defineStore('searched', () => {
const foundFile = ref<EhrFile[]>([])
const isAdvSearchCall = ref<boolean>(false)
const isSearch = ref<Boolean>(false)
async function getFoundFile(data: EhrFile[]) {
foundFile.value = data
}
return {
foundFile,
isSearch,
isAdvSearchCall,
getFoundFile,
}
})