Commit 39e41d05 by afe1 Committed by GitHub

fix: path '/auth' is blank page (#4731)

1 parent 862bbd83
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[] = [ ...@@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
}, },
name: 'Authentication', name: 'Authentication',
path: '/auth', path: '/auth',
redirect: LOGIN_PATH,
children: [ children: [
{ {
name: 'Login', name: 'Login',
......
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[] = [ ...@@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
}, },
name: 'Authentication', name: 'Authentication',
path: '/auth', path: '/auth',
redirect: LOGIN_PATH,
children: [ children: [
{ {
name: 'Login', name: 'Login',
......
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[] = [ ...@@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
}, },
name: 'Authentication', name: 'Authentication',
path: '/auth', path: '/auth',
redirect: LOGIN_PATH,
children: [ children: [
{ {
name: 'Login', name: 'Login',
......
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[] = [ ...@@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
}, },
name: 'Authentication', name: 'Authentication',
path: '/auth', path: '/auth',
redirect: LOGIN_PATH,
children: [ children: [
{ {
name: 'Login', name: 'Login',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!