mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08:00
Merge pull request #781 from toeverything/feature/refresh
feat: refresh can jump first workspace
This commit is contained in:
@@ -71,7 +71,7 @@ const AppDefender = ({ children }: PropsWithChildren) => {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (router.pathname === '/') {
|
if (router.asPath === '/') {
|
||||||
router.replace('/workspace');
|
router.replace('/workspace');
|
||||||
}
|
}
|
||||||
}, [router]);
|
}, [router]);
|
||||||
|
|||||||
Reference in New Issue
Block a user