18 lines
902 B
TypeScript
18 lines
902 B
TypeScript
/**
|
|
* app/router/routes/auth.routes.ts
|
|
* 认证路由:/login 登录页、/casdoor-callback OAuth 回调、/reset-password 重置密码。
|
|
*/
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
import LoginView from '@/features/auth/views/LoginView.vue';
|
|
import ResetPasswordView from '@/features/auth/views/ResetPasswordView.vue';
|
|
import SsoAuthorizeView from '@/features/sso/views/SsoAuthorizeView.vue';
|
|
import SsoLaunchView from '@/features/sso/views/SsoLaunchView.vue';
|
|
|
|
export const authRoutes: RouteRecordRaw[] = [
|
|
{ path: '/login', name: 'Login', component: LoginView },
|
|
{ path: '/casdoor-callback', name: 'CasdoorCallback', component: LoginView },
|
|
{ path: '/reset-password', name: 'ResetPassword', component: ResetPasswordView },
|
|
{ path: '/sso/authorize', name: 'SsoAuthorize', component: SsoAuthorizeView },
|
|
{ path: '/sso/launch', name: 'SsoLaunch', component: SsoLaunchView },
|
|
];
|