feat: refresh can jump first workspace

This commit is contained in:
DiamondThree
2023-02-03 17:57:07 +08:00
parent 76d52bd2fd
commit 3f794a959b

View File

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