fix: white screen after build
This commit is contained in:
@@ -71,7 +71,7 @@ const AppDefender = ({ children }: PropsWithChildren) => {
|
|||||||
const { synced } = useAppState();
|
const { synced } = useAppState();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (router.asPath === '/') {
|
if (['/index.html', '/'].includes(router.asPath)) {
|
||||||
router.replace('/workspace');
|
router.replace('/workspace');
|
||||||
}
|
}
|
||||||
}, [router]);
|
}, [router]);
|
||||||
|
|||||||
Reference in New Issue
Block a user