Merge pull request #781 from toeverything/feature/refresh

feat: refresh can jump first workspace
This commit is contained in:
DarkSky
2023-02-06 01:58:56 +08:00
committed by GitHub

View File

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