hrms-edm/Services/client/src/stores/searched-data.ts

19 lines
404 B
TypeScript
Raw Normal View History

2023-11-23 08:47:44 +07:00
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 isSearch = ref<Boolean>(false)
async function getFoundFile(data: EhrFile[]) {
foundFile.value = data
}
return {
isSearch,
foundFile,
getFoundFile,
}
})