| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import type { RouteRecordRaw } from 'vue-router'
- const Layout = () => import('@/layouts/index.vue')
- const routes: RouteRecordRaw[] = [
- {
- path: '/model',
- component: Layout,
- redirect: '/model/index',
- name: 'model',
- meta: {
- title: '模型管理',
- icon: 'ep:coin',
- },
- children: [
- {
- path: 'index',
- name: 'modelList',
- component: () => import('@/views/model/object/index.vue'),
- meta: {
- title: '对象定义',
- sidebar: false,
- breadcrumb: false,
- activeMenu: '/model',
- },
- },
- {
- path: 'object/attr/:modelId/:objectId',
- name: 'modelObjectEdit',
- component: () => import('@/views/model/attr/index.vue'),
- meta: {
- title: '对象编辑',
- sidebar: false,
- activeMenu: '/model',
- cache: true,
- noCache: 'modelObjectEdit',
- },
- },
- {
- path: 'object/oam/:modelId/:objectId',
- name: 'modelObjectOAM',
- component: () => import('@/views/model/oam/index.vue'),
- meta: {
- title: '行为定义',
- sidebar: false,
- activeMenu: '/model',
- cache: true,
- noCache: 'modelObjectOAM',
- },
- },
- ],
- },
- ]
- export default routes
|