refactor: clean about search
This commit is contained in:
parent
74c5115e95
commit
aa63e9c8c5
3 changed files with 17 additions and 4 deletions
|
|
@ -4,6 +4,7 @@ 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[]) {
|
||||
|
|
@ -11,8 +12,9 @@ export const useSearchDataStore = defineStore('searched', () => {
|
|||
}
|
||||
|
||||
return {
|
||||
isSearch,
|
||||
foundFile,
|
||||
isSearch,
|
||||
isAdvSearchCall,
|
||||
getFoundFile,
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue