mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-28 11:53:24 +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();
|
||||
|
||||
useEffect(() => {
|
||||
if (router.pathname === '/') {
|
||||
if (router.asPath === '/') {
|
||||
router.replace('/workspace');
|
||||
}
|
||||
}, [router]);
|
||||
|
Loading…
Reference in New Issue
Block a user