refactor: new storage store

This commit is contained in:
Methapon2001 2023-12-10 09:27:26 +07:00
parent fe9345fbbd
commit 9ff9c179bc
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 219 additions and 0 deletions

View file

@ -15,6 +15,7 @@ import GlobalErrorDialog from './GlobalErrorDialog.vue'
import SearchBar from '@/modules/01_user/components/SearchBar.vue'
import FileDownload from '@/modules/01_user/components/FileDownload.vue'
import useStorage from '@/stores/storage'
const DEPT_NAME = ['ตู้เอกสาร', 'ลิ้นชัก', 'แฟ้ม', 'แฟ้มย่อย'] as const
@ -23,6 +24,7 @@ const { isSearch } = storeToRefs(useSearchDataStore())
const { data, currentDept, currentPath } = storeToRefs(useTreeDataStore())
const { createFolder, getCabinet, gotoParent, getFolder } = useTreeDataStore()
useStorage()
useSocketStore()
const viewMode = ref<'view_list' | 'view_module'>('view_list')