feat: 增加hideSidebar配置

This commit is contained in:
renxiaodong
2025-06-22 22:52:03 -04:00
parent 2ce531f896
commit b3d33600c0
3 changed files with 16 additions and 11 deletions

View File

@ -2,7 +2,7 @@
* @Author: 田鑫
* @Date: 2023-03-05 18:14:17
* @LastEditors: Please set LastEditors
* @LastEditTime: 2025-06-20 05:35:27
* @LastEditTime: 2025-06-22 22:46:01
* @Description:
*/
import { createRouter, createWebHistory } from 'vue-router';
@ -20,17 +20,20 @@ const router = createRouter({
routes: [
{
path: '/login',
name: 'UserLogin',
name: 'login',
component: () => import('@/views/components/login'),
},
{
path: '/workplace',
name: 'workplace',
component: () => import('@/views/components/workplace'),
meta: {
hideSidebar: true,
},
},
{
path: '/',
name: 'Home',
name: 'dataEngine',
redirect: '/dataEngine/dataEngine/hotTranslation',
children: [...appRoutes, REDIRECT_MAIN, NOT_FOUND_ROUTE],
},