fix: close search when click on top tree
This commit is contained in:
parent
73821d4d2b
commit
e05545f017
2 changed files with 4 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ onMounted(async () => {
|
|||
() => {
|
||||
currentPath = ''
|
||||
getFolder(currentPath)
|
||||
isSearch = false
|
||||
}
|
||||
"
|
||||
>ตู้จัดเก็บเอกสาร</span
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@ import { useLoader } from '@/stores/loader'
|
|||
import { storeToRefs } from 'pinia'
|
||||
import profile from '@/components/Profile.vue'
|
||||
import { useTreeDataStore } from '@/stores/tree-data'
|
||||
import { useSearchDataStore } from '@/stores/searched-data';
|
||||
const { currentPath } = storeToRefs(useTreeDataStore())
|
||||
const { isSearch } = storeToRefs(useSearchDataStore())
|
||||
const { getFolder } = useTreeDataStore()
|
||||
const loaderStore = useLoader()
|
||||
const { loader } = storeToRefs(loaderStore)
|
||||
|
|
@ -32,6 +34,7 @@ const { loader } = storeToRefs(loaderStore)
|
|||
() => {
|
||||
currentPath = ''
|
||||
getFolder(currentPath)
|
||||
isSearch = false
|
||||
}
|
||||
"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue