From dbf8d5b2507a132263771a21ee22894aad09e89d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Fri, 22 Dec 2023 20:59:18 +0900 Subject: [PATCH] fix error handling --- error.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/error.vue b/error.vue index 3803f543..35f454be 100644 --- a/error.vue +++ b/error.vue @@ -40,6 +40,9 @@ const currentLocaleIso = computed(() => (locales.value as LocaleObject[]).find(( const isNavOpen = ref(false); const isCanvasLoaded = ref(false); +const scrollPos = useState('miHub_global_scrollPos', () => 0); +scrollPos.value = 0; + const handleError = () => clearError({ redirect: localePath('/') }); /**