Skip to content

Commit 399ed5c

Browse files
committed
fix(projects): after logging can still return to the login page .close #24
1 parent 51f3199 commit 399ed5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router/guard/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const init: Init = async currentFullPath => {
4242
await store.dispatch(initAuthRoute());
4343

4444
if (currentFullPath.includes('login')) {
45-
return { name: 'root', replace: true };
45+
return '/';
4646
}
4747

4848
return null;

0 commit comments

Comments
 (0)