♻️ refactor: refactor the logic of fetchTokenKeys and SetupCheck

This commit is contained in:
Apple\Apple
2025-06-04 01:00:48 +08:00
parent 3f45153e75
commit 943f21f3cb
11 changed files with 116 additions and 94 deletions

View File

@@ -25,7 +25,7 @@ import Playground from './pages/Playground/index.js';
import OAuth2Callback from './components/auth/OAuth2Callback.js';
import PersonalSetting from './components/settings/PersonalSetting.js';
import Setup from './pages/Setup/index.js';
import SetupCheck from './components/SetupCheck';
import { useSetupCheck } from './hooks/useSetupCheck.js';
const Home = lazy(() => import('./pages/Home'));
const Detail = lazy(() => import('./pages/Detail'));
@@ -35,7 +35,7 @@ function App() {
const location = useLocation();
return (
<SetupCheck>
<useSetupCheck>
<Routes>
<Route
path='/'
@@ -290,7 +290,7 @@ function App() {
/>
<Route path='*' element={<NotFound />} />
</Routes>
</SetupCheck>
</useSetupCheck>
);
}