Commit 1e669870cc15384bf76f32ee95008f0c998b477b

Authored by Vben
1 parent edc75251

fix(mock): make sure the background mode login is normal, fix #452

CHANGELOG.zh_CN.md
@@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
18 - 确保面包屑正确的显示图标 18 - 确保面包屑正确的显示图标
19 - 修复 tinymce 上传按钮全屏模式下消失问题 19 - 修复 tinymce 上传按钮全屏模式下消失问题
20 - 确保 title 在重新登录后正常改变 20 - 确保 title 在重新登录后正常改变
  21 +- 确保后台模式登录正常
21 22
22 ## 2.1.1 (2021-03-26) 23 ## 2.1.1 (2021-03-26)
23 24
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