feat: refresh can jump first workspace
This commit is contained in:
1 parent
76d52bd2fd
commit
3f794a959b
1 file changed
+1
-1
@@ -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