chore: 悦码v1增加环境配置
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import { Y_CODE_DESIGNER_URL } from '@/constants';
|
||||
import { Y_CODE_DESIGNER_URL, Y_CODE_V1_URL } from '@/constants';
|
||||
|
||||
// 微前端路由
|
||||
const moduleName = 'micro';
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
@@ -18,54 +17,36 @@ const routes: Array<RouteRecordRaw> = [
|
||||
name: `${moduleName}-designer`,
|
||||
meta: {
|
||||
title: '低代码编辑器',
|
||||
keepAlive: true,
|
||||
icon: 'ant-design:edit-outlined',
|
||||
app: {
|
||||
url: Y_CODE_DESIGNER_URL,
|
||||
name: 'y-code-designer',
|
||||
applicationId: 4,
|
||||
// sync: true,
|
||||
// alive: true,
|
||||
// degrade: true,
|
||||
sync: true,
|
||||
alive: true,
|
||||
degrade: true,
|
||||
},
|
||||
},
|
||||
component: () => import('@/components/renderer-adapter/index.vue'),
|
||||
},
|
||||
// {
|
||||
// path: 'renderer',
|
||||
// name: `${moduleName}-renderer`,
|
||||
// meta: {
|
||||
// title: '低代码渲染器',
|
||||
// keepAlive: true,
|
||||
// // hideInMenu: true,
|
||||
// icon: 'ant-design:eye-outlined',
|
||||
// app: {
|
||||
// url: 'https://localhost:10010',
|
||||
// name: 'y-code-renderer',
|
||||
// applicationId: 4,
|
||||
// // sync: true,
|
||||
// // alive: true,
|
||||
// // degrade: true,
|
||||
// },
|
||||
// },
|
||||
// component: () => import('@/components/renderer-adapter/index.vue'),
|
||||
// },
|
||||
{
|
||||
path: 'y-code-v1',
|
||||
name: `${moduleName}-y-code-v1`,
|
||||
meta: {
|
||||
title: '悦码 1.0',
|
||||
// keepAlive: true,
|
||||
keepAlive: true,
|
||||
// hideInMenu: true,
|
||||
icon: 'ant-design:delete-outlined',
|
||||
app: {
|
||||
url: 'http://localhost:10012',
|
||||
url: Y_CODE_V1_URL,
|
||||
name: 'y-code-v1',
|
||||
// sync: true,
|
||||
// alive: true,
|
||||
degrade: true,
|
||||
},
|
||||
},
|
||||
component: () => import('@/components/micro-container/index.vue'),
|
||||
component: () => import('@/components/renderer-adapter/index.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user