feat: vue3渲染适配器
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { h } from 'vue';
|
||||
|
||||
import RendererAdapter from '@sy/vue3-renderer-adapter';
|
||||
|
||||
import { VITE_RENDERER_URL } from '#/constants';
|
||||
|
||||
// 微前端路由
|
||||
@@ -19,20 +23,17 @@ const routes: Array<RouteRecordRaw> = [
|
||||
name: `${moduleName}-list`,
|
||||
meta: {
|
||||
title: '应用列表',
|
||||
keepAlive: true,
|
||||
keepAlive: false,
|
||||
icon: 'ant-design:list',
|
||||
app: {
|
||||
},
|
||||
component: () =>
|
||||
h(RendererAdapter, {
|
||||
url: VITE_RENDERER_URL,
|
||||
name: 'y-code-platform-application-list',
|
||||
// sync: true,
|
||||
// alive: true,
|
||||
// degrade: true,
|
||||
applicationId: 0,
|
||||
projectId: 4,
|
||||
fileId: 'b91n1y9yr',
|
||||
},
|
||||
},
|
||||
component: () => import('#/components/renderer-adapter/index.vue'),
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user