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