diff --git a/cista-front/src/stores/documents.ts b/cista-front/src/stores/documents.ts index f7485e9..8ffb097 100644 --- a/cista-front/src/stores/documents.ts +++ b/cista-front/src/stores/documents.ts @@ -24,7 +24,6 @@ type User = { export const useDocumentStore = defineStore({ id: 'documents', state: () => ({ - root: {} as DirEntry, document: [] as Document[], search: "" as string, selected: new Set(), @@ -40,7 +39,10 @@ export const useDocumentStore = defineStore({ isOpenLoginModal: false } as User }), - + persist: { + storage: sessionStorage, + paths: ['document'], + }, actions: { updateRoot(root: DirEntry | null = null) { if (!root) {