From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/swr-initor.tsx |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/app/components/swr-initor.tsx b/app/components/swr-initor.tsx
index 8f9c5b4..2a119df 100644
--- a/app/components/swr-initor.tsx
+++ b/app/components/swr-initor.tsx
@@ -5,10 +5,6 @@
 import type { ReactNode } from 'react'
 import { usePathname, useRouter, useSearchParams } from 'next/navigation'
 import { fetchSetupStatus } from '@/service/common'
-import {
-  EDUCATION_VERIFYING_LOCALSTORAGE_ITEM,
-  EDUCATION_VERIFY_URL_SEARCHPARAMS_ACTION,
-} from '@/app/education-apply/constants'
 
 type SwrInitorProps = {
   children: ReactNode
@@ -45,11 +41,6 @@
 
   useEffect(() => {
     (async () => {
-      const action = searchParams.get('action')
-
-      if (action === EDUCATION_VERIFY_URL_SEARCHPARAMS_ACTION)
-        localStorage.setItem(EDUCATION_VERIFYING_LOCALSTORAGE_ITEM, 'yes')
-
       try {
         const isFinished = await isSetupFinished()
         if (!isFinished) {
@@ -68,7 +59,7 @@
 
         setInit(true)
       }
-      catch {
+      catch (error) {
         router.replace('/signin')
       }
     })()

--
Gitblit v1.8.0