feat: 第三方登录认证功能和管理页

This commit is contained in:
TsMask
2025-08-12 09:53:38 +08:00
parent 246bb9a7e0
commit 38f0b9b560
21 changed files with 2355 additions and 411 deletions

View File

@@ -65,11 +65,16 @@ const constantRoutes: RouteRecordRaw[] = [
},
],
},
{
path: '/login/oauth2',
name: 'LoginOAuth2', // 第三方认证重定向
component: () => import('@/views/login/oauth2.vue'),
},
{
path: '/login',
name: 'Login',
meta: { title: 'router.login' },
component: () => import('@/views/login.vue'),
component: () => import('@/views/login/index.vue'),
},
{
path: '/register',
@@ -158,7 +163,7 @@ router.afterEach((to, from, failure) => {
/**无Token可访问页面地址白名单 */
const WHITE_LIST: string[] = [
'/login',
'/auth-redirect',
'/login/oauth2',
'/help',
'/register',
'/quick-start',