feat: Integrate SetupCheck component for improved setup validation in routing

This commit is contained in:
CaIon
2025-04-08 17:31:46 +08:00
parent aa34c3035a
commit 5813ca780f
3 changed files with 23 additions and 7 deletions

View File

@@ -66,13 +66,9 @@ const Home = () => {
};
useEffect(() => {
if (statusState.status?.setup === false) {
window.location.href = '/setup';
return;
}
displayNotice().then();
displayHomePageContent().then();
});
}, []);
return (
<>
@@ -116,6 +112,7 @@ const Home = () => {
https://github.com/Calcium-Ion/new-api
</a>
</p>
<p>
{t('协议')}
<a