From f328d1fb32b2d069828131b04596f9028847e093 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 7 Dec 2023 14:28:48 +0700 Subject: [PATCH] feat: persistant refresh (no url change) --- Services/client/src/components/PageLayout.vue | 8 +++++++- Services/client/src/stores/tree-data.ts | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Services/client/src/components/PageLayout.vue b/Services/client/src/components/PageLayout.vue index 38821ea..788a52d 100644 --- a/Services/client/src/components/PageLayout.vue +++ b/Services/client/src/components/PageLayout.vue @@ -48,7 +48,13 @@ async function submitFolderForm(value: { } } -onMounted(getCabinet) +onMounted(async () => { + await getCabinet() + + const sessionCurrentPath = sessionStorage.getItem('currentPath') + + if (sessionCurrentPath) await getFolder(sessionCurrentPath) +})