From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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