Skip to content

Commit

Permalink
fix: path '/auth' is blank page (#4731)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzzyf authored Oct 24, 2024
1 parent 862bbd8 commit 39e41d0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/web-antd/src/router/routes/core.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 { $t } from '#/locales';
Expand Down Expand Up @@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
},
name: 'Authentication',
path: '/auth',
redirect: LOGIN_PATH,
children: [
{
name: 'Login',
Expand Down
3 changes: 2 additions & 1 deletion apps/web-ele/src/router/routes/core.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 { $t } from '#/locales';
Expand Down Expand Up @@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
},
name: 'Authentication',
path: '/auth',
redirect: LOGIN_PATH,
children: [
{
name: 'Login',
Expand Down
3 changes: 2 additions & 1 deletion apps/web-naive/src/router/routes/core.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 { $t } from '#/locales';
Expand Down Expand Up @@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
},
name: 'Authentication',
path: '/auth',
redirect: LOGIN_PATH,
children: [
{
name: 'Login',
Expand Down
3 changes: 2 additions & 1 deletion playground/src/router/routes/core.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 { $t } from '#/locales';
Expand Down Expand Up @@ -37,6 +37,7 @@ const coreRoutes: RouteRecordRaw[] = [
},
name: 'Authentication',
path: '/auth',
redirect: LOGIN_PATH,
children: [
{
name: 'Login',
Expand Down

0 comments on commit 39e41d0

Please sign in to comment.