refactor:add socket CRUD
This commit is contained in:
parent
fc00ff02ab
commit
97fb89281c
3 changed files with 251 additions and 6 deletions
|
|
@ -4,6 +4,7 @@ import { storeToRefs } from 'pinia'
|
|||
import { useTreeDataStore } from '@/stores/tree-data'
|
||||
import { useSearchDataStore } from '@/stores/searched-data'
|
||||
import { useFileInfoStore } from '@/stores/file-info-data'
|
||||
import { useSocketStore } from '@/stores/socket'
|
||||
|
||||
import FileItem from './FileItem.vue'
|
||||
import TreeExplorer from './TreeExplorer.vue'
|
||||
|
|
@ -22,6 +23,8 @@ const { isSearch } = storeToRefs(useSearchDataStore())
|
|||
const { data, currentDept, currentPath } = storeToRefs(useTreeDataStore())
|
||||
const { createFolder, getCabinet, gotoParent, getFolder } = useTreeDataStore()
|
||||
|
||||
useSocketStore()
|
||||
|
||||
const viewMode = ref<'view_list' | 'view_module'>('view_list')
|
||||
const props = defineProps<{
|
||||
mode: 'admin' | 'user'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue