mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-26 09:26:34 +08:00
refactor: oauth2登录调整
This commit is contained in:
@@ -257,7 +257,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
|
||||
const token = getSession('token');
|
||||
if (to.path === '/login' && !token) {
|
||||
if ((to.path === '/login' || to.path == '/oauth2/callback') && !token) {
|
||||
next();
|
||||
NProgress.done();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user