liu
4 天以前 ee7ac8df8bce38add1f75baf876b49de94b9e00a
src/router/routes/core.ts
@@ -1,9 +1,10 @@
import type { RouteRecordRaw } from 'vue-router';
import { LOGIN_PATH } from '..\..\packages\constants\src';
import { preferences } from '..\..\packages\preferences\src';
import { LOGIN_PATH } from '@vben/constants';
import { preferences } from '@vben/preferences';
import { $t } from '#/locales';
import { mobileRoutes } from '#/mobile/routes';
const BasicLayout = () => import('#/layouts/basic.vue');
const AuthPageLayout = () => import('#/layouts/auth.vue');
@@ -22,6 +23,7 @@
/** 基本路由,这些路由是必须存在的 */
const coreRoutes: RouteRecordRaw[] = [
  ...mobileRoutes,
  /**
   * 根路由
   * 使用基础布局,作为所有页面的父级容器,子级就不必配置BasicLayout。
@@ -110,6 +112,21 @@
    ],
  },
  /**
   * 生产工作台 - 全屏独立页面,不使用 BasicLayout
   */
  {
    component: () => import('#/views/mes/workbench/index.vue'),
    meta: {
      hideInBreadcrumb: true,
      hideInMenu: true,
      hideInTab: true,
      ignoreAccess: true,
      title: '生产工作台',
    },
    name: 'MesWorkbench',
    path: '/mes/workbench',
  },
  /**
   * 用于 bpm 移动端流程表单 web-view 的嵌入
   */
  {