chore: 排查无界加载异常的问题

This commit is contained in:
wangxuefeng
2025-03-19 00:08:19 +08:00
parent a2d308bc1a
commit 9b39f265d3
12 changed files with 369 additions and 260 deletions

View File

@@ -3,6 +3,7 @@ import type { RouteRecordRaw } from 'vue-router';
import WujieVueRendererAdapter from '@sy/wujie-vue3-renderer-adapter';
import { VITE_RENDERER_URL } from '#/constants';
import { router } from '#/router';
// 微前端路由
const moduleName = 'application';
@@ -25,11 +26,17 @@ const routes: Array<RouteRecordRaw> = [
icon: 'ant-design:list',
},
component: WujieVueRendererAdapter,
props: {
url: `${VITE_RENDERER_URL}`,
accessToken: localStorage.getItem('y-code-access-token'),
fileId: 'b91n1y9yr',
projectId: '4',
props: (route) => {
return {
url: `${VITE_RENDERER_URL}`,
accessToken: localStorage.getItem('y-code-access-token'),
fileId: 'b91n1y9yr',
projectId: '4',
getRouter: () => router,
route,
height: '100%',
// degrade: true,
};
},
},
],