46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
import { VITE_RENDERER_URL } from '#/constants';
|
|
import {
|
|
LOW_CODE_APPLICATION_ID,
|
|
LOW_CODE_PROJECT_ID,
|
|
} from '#/constants/low-code';
|
|
|
|
const moduleName = 'acl';
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
|
{
|
|
path: '/acl',
|
|
name: moduleName,
|
|
redirect: '/acl/list',
|
|
meta: {
|
|
title: '权限管理',
|
|
icon: 'ant-design:user-outlined',
|
|
},
|
|
children: [
|
|
{
|
|
path: 'list',
|
|
name: `${moduleName}-list`,
|
|
meta: {
|
|
title: '权限列表',
|
|
keepAlive: true,
|
|
icon: 'ant-design:list',
|
|
app: {
|
|
url: VITE_RENDERER_URL,
|
|
name: 'y-code-platform-project-list',
|
|
// sync: true,
|
|
// alive: true,
|
|
// degrade: true,
|
|
applicationId: LOW_CODE_APPLICATION_ID,
|
|
projectId: LOW_CODE_PROJECT_ID,
|
|
fileId: '1hsd0407hf',
|
|
},
|
|
},
|
|
component: () => import('#/components/renderer-adapter/index.vue'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|