feat: Integrate SetupCheck component for improved setup validation in routing

This commit is contained in:
CaIon committed 2025-04-08 17:31:46 +08:00
1 parent 9dc851d6ef
commit d85e25fc46
3 files changed
+23 -7

No files matched your search

+2 -5
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