Commit 1e669870cc15384bf76f32ee95008f0c998b477b
1 parent
edc75251
fix(mock): make sure the background mode login is normal, fix #452
Showing
3 changed files
with
12 additions
and
11 deletions
CHANGELOG.zh_CN.md
mock/sys/menu.ts
@@ -3,11 +3,11 @@ import { MockMethod } from 'vite-plugin-mock'; | @@ -3,11 +3,11 @@ import { MockMethod } from 'vite-plugin-mock'; | ||
3 | 3 | ||
4 | // single | 4 | // single |
5 | const dashboardRoute = { | 5 | const dashboardRoute = { |
6 | - path: '/home', | 6 | + path: '/dashboard', |
7 | name: 'Welcome', | 7 | name: 'Welcome', |
8 | - component: '/dashboard/welcome/index', | 8 | + component: '/dashboard/analysis/index', |
9 | meta: { | 9 | meta: { |
10 | - title: 'routes.dashboard.welcome', | 10 | + title: 'routes.dashboard.analysis', |
11 | affix: true, | 11 | affix: true, |
12 | icon: 'bx:bx-home', | 12 | icon: 'bx:bx-home', |
13 | }, | 13 | }, |
src/router/routes/modules/dashboard.ts
@@ -14,14 +14,6 @@ const dashboard: AppRouteModule = { | @@ -14,14 +14,6 @@ const dashboard: AppRouteModule = { | ||
14 | }, | 14 | }, |
15 | children: [ | 15 | children: [ |
16 | { | 16 | { |
17 | - path: 'workbench', | ||
18 | - name: 'Workbench', | ||
19 | - component: () => import('/@/views/dashboard/workbench/index.vue'), | ||
20 | - meta: { | ||
21 | - title: t('routes.dashboard.workbench'), | ||
22 | - }, | ||
23 | - }, | ||
24 | - { | ||
25 | path: 'analysis', | 17 | path: 'analysis', |
26 | name: 'Analysis', | 18 | name: 'Analysis', |
27 | component: () => import('/@/views/dashboard/analysis/index.vue'), | 19 | component: () => import('/@/views/dashboard/analysis/index.vue'), |
@@ -30,6 +22,14 @@ const dashboard: AppRouteModule = { | @@ -30,6 +22,14 @@ const dashboard: AppRouteModule = { | ||
30 | title: t('routes.dashboard.analysis'), | 22 | title: t('routes.dashboard.analysis'), |
31 | }, | 23 | }, |
32 | }, | 24 | }, |
25 | + { | ||
26 | + path: 'workbench', | ||
27 | + name: 'Workbench', | ||
28 | + component: () => import('/@/views/dashboard/workbench/index.vue'), | ||
29 | + meta: { | ||
30 | + title: t('routes.dashboard.workbench'), | ||
31 | + }, | ||
32 | + }, | ||
33 | ], | 33 | ], |
34 | }; | 34 | }; |
35 | 35 |