同步6/16
This commit is contained in:
@@ -54,6 +54,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: 'communitylist',
|
||||
name: 'communitylist',
|
||||
// system:village:list
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: '小区列表'
|
||||
@@ -102,27 +103,19 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
// }
|
||||
]
|
||||
}
|
||||
// {
|
||||
// path: '/user',
|
||||
// component: Layout,
|
||||
// hidden: true,
|
||||
// redirect: 'noredirect',
|
||||
// children: [
|
||||
// {
|
||||
// path: 'profile',
|
||||
// component: () => import('@/views/system/user/profile/index.vue'),
|
||||
// name: 'Profile',
|
||||
// meta: { title: '个人中心', icon: 'user' }
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
];
|
||||
if (import.meta.env.VITE_APP_SHOW_WORK_PLATFORM === 'true') {
|
||||
const find = constantRoutes.find((item) => item.path === '');
|
||||
if (find) {
|
||||
find.children?.push({
|
||||
path: '/index',
|
||||
component: () => import('@/views/workbench/index2.vue'),
|
||||
component: () => {
|
||||
if (import.meta.env.VITE_LOGIN_BACK_URL_WORKBENCH_TRUE === 'true') {
|
||||
return import('@/views/workbench/index.vue');
|
||||
} else {
|
||||
return import('@/views/workbench/index2.vue');
|
||||
}
|
||||
},
|
||||
name: 'Index',
|
||||
meta: { title: '工作台', icon: 'dashboard', affix: true }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user