mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-29 19:54:04 +03:00
Merge pull request #781 from toeverything/feature/refresh
feat: refresh can jump first workspace
This commit is contained in:
commit
d359823f8e
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user