chore: 排查无界加载异常的问题
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user