feat: 第三方登录认证功能和管理页
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user