diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index de297843..b4168fff 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -18,6 +18,7 @@ - 确保面包屑正确的显示图标 - 修复 tinymce 上传按钮全屏模式下消失问题 - 确保 title 在重新登录后正常改变 +- 确保后台模式登录正常 ## 2.1.1 (2021-03-26) diff --git a/mock/sys/menu.ts b/mock/sys/menu.ts index 33acd977..043e7cde 100644 --- a/mock/sys/menu.ts +++ b/mock/sys/menu.ts @@ -3,11 +3,11 @@ import { MockMethod } from 'vite-plugin-mock'; // single const dashboardRoute = { - path: '/home', + path: '/dashboard', name: 'Welcome', - component: '/dashboard/welcome/index', + component: '/dashboard/analysis/index', meta: { - title: 'routes.dashboard.welcome', + title: 'routes.dashboard.analysis', affix: true, icon: 'bx:bx-home', }, diff --git a/src/router/routes/modules/dashboard.ts b/src/router/routes/modules/dashboard.ts index 6613ba95..7c050805 100644 --- a/src/router/routes/modules/dashboard.ts +++ b/src/router/routes/modules/dashboard.ts @@ -13,14 +13,6 @@ const dashboard: AppRouteModule = { title: t('routes.dashboard.dashboard'), }, children: [ - { - path: 'workbench', - name: 'Workbench', - component: () => import('/@/views/dashboard/workbench/index.vue'), - meta: { - title: t('routes.dashboard.workbench'), - }, - }, { path: 'analysis', name: 'Analysis', @@ -30,6 +22,14 @@ const dashboard: AppRouteModule = { title: t('routes.dashboard.analysis'), }, }, + { + path: 'workbench', + name: 'Workbench', + component: () => import('/@/views/dashboard/workbench/index.vue'), + meta: { + title: t('routes.dashboard.workbench'), + }, + }, ], };