afe1
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
8 additions and
4 deletions
-
apps/web-antd/src/router/routes/core.ts
-
apps/web-ele/src/router/routes/core.ts
-
apps/web-naive/src/router/routes/core.ts
-
playground/src/router/routes/core.ts
|
|
@ -1,6 +1,6 @@ |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
|
|
|
|
|
|
import { DEFAULT_HOME_PATH } from '@vben/constants'; |
|
|
import { DEFAULT_HOME_PATH, LOGIN_PATH } from '@vben/constants'; |
|
|
|
|
|
|
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { $t } from '#/locales'; |
|
|
import { $t } from '#/locales'; |
|
|
@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [ |
|
|
}, |
|
|
}, |
|
|
name: 'Authentication', |
|
|
name: 'Authentication', |
|
|
path: '/auth', |
|
|
path: '/auth', |
|
|
|
|
|
redirect: LOGIN_PATH, |
|
|
children: [ |
|
|
children: [ |
|
|
{ |
|
|
{ |
|
|
name: 'Login', |
|
|
name: 'Login', |
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
|
|
|
|
|
|
import { DEFAULT_HOME_PATH } from '@vben/constants'; |
|
|
import { DEFAULT_HOME_PATH, LOGIN_PATH } from '@vben/constants'; |
|
|
|
|
|
|
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { $t } from '#/locales'; |
|
|
import { $t } from '#/locales'; |
|
|
@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [ |
|
|
}, |
|
|
}, |
|
|
name: 'Authentication', |
|
|
name: 'Authentication', |
|
|
path: '/auth', |
|
|
path: '/auth', |
|
|
|
|
|
redirect: LOGIN_PATH, |
|
|
children: [ |
|
|
children: [ |
|
|
{ |
|
|
{ |
|
|
name: 'Login', |
|
|
name: 'Login', |
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
|
|
|
|
|
|
import { DEFAULT_HOME_PATH } from '@vben/constants'; |
|
|
import { DEFAULT_HOME_PATH, LOGIN_PATH } from '@vben/constants'; |
|
|
|
|
|
|
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { $t } from '#/locales'; |
|
|
import { $t } from '#/locales'; |
|
|
@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [ |
|
|
}, |
|
|
}, |
|
|
name: 'Authentication', |
|
|
name: 'Authentication', |
|
|
path: '/auth', |
|
|
path: '/auth', |
|
|
|
|
|
redirect: LOGIN_PATH, |
|
|
children: [ |
|
|
children: [ |
|
|
{ |
|
|
{ |
|
|
name: 'Login', |
|
|
name: 'Login', |
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
import type { RouteRecordRaw } from 'vue-router'; |
|
|
|
|
|
|
|
|
import { DEFAULT_HOME_PATH } from '@vben/constants'; |
|
|
import { DEFAULT_HOME_PATH, LOGIN_PATH } from '@vben/constants'; |
|
|
|
|
|
|
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { AuthPageLayout } from '#/layouts'; |
|
|
import { $t } from '#/locales'; |
|
|
import { $t } from '#/locales'; |
|
|
@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [ |
|
|
}, |
|
|
}, |
|
|
name: 'Authentication', |
|
|
name: 'Authentication', |
|
|
path: '/auth', |
|
|
path: '/auth', |
|
|
|
|
|
redirect: LOGIN_PATH, |
|
|
children: [ |
|
|
children: [ |
|
|
{ |
|
|
{ |
|
|
name: 'Login', |
|
|
name: 'Login', |
|
|
|