chore: 调整子应用加载方式

This commit is contained in:
wangxuefeng
2025-03-14 13:53:47 +08:00
parent ba6616fe4d
commit 26c08e0974
3 changed files with 19 additions and 39 deletions

View File

@@ -1,7 +1,5 @@
import type { RouteRecordRaw } from 'vue-router';
import { h } from 'vue';
import RendererAdapter from '@sy/vue3-renderer-adapter';
import { VITE_RENDERER_URL } from '#/constants';
@@ -26,14 +24,13 @@ const routes: Array<RouteRecordRaw> = [
keepAlive: false,
icon: 'ant-design:list',
},
component: () =>
h(RendererAdapter, {
url: VITE_RENDERER_URL,
name: 'y-code-platform-application-list',
applicationId: 0,
projectId: 4,
fileId: 'b91n1y9yr',
}),
component: RendererAdapter,
props: {
url: `${VITE_RENDERER_URL}`,
accessToken: localStorage.getItem('y-code-access-token'),
fileId: 'b91n1y9yr',
projectId: '4',
},
},
],
},