20 lines
471 B
TypeScript
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,
|
|
}
|
|
})
|