fix: white screen after build

This commit is contained in:
linonetwo 2023-02-09 22:27:36 +08:00
parent d1f2b3f8af
commit 9bd6bcaf65

View File

@ -71,7 +71,7 @@ const AppDefender = ({ children }: PropsWithChildren) => {
const { synced } = useAppState();
useEffect(() => {
if (router.asPath === '/') {
if (['/index.html', '/'].includes(router.asPath)) {
router.replace('/workspace');
}
}, [router]);