mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00: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();
|
||||
|
||||
useEffect(() => {
|
||||
if (router.pathname === '/') {
|
||||
if (router.asPath === '/') {
|
||||
router.replace('/workspace');
|
||||
}
|
||||
}, [router]);
|
||||
|
||||
Reference in New Issue
Block a user