test: 路由跨应用传参测试

This commit is contained in:
wangxuefeng 2025-03-19 16:25:13 +08:00
parent 9a2f29e3e4
commit 748678d6cd
2 changed files with 3 additions and 5 deletions

View File

@ -5,8 +5,8 @@ VITE_NODE_ENV = 'development'
VITE_BASE_URL = / VITE_BASE_URL = /
VITE_PORT = 10011 VITE_PORT = 10011
VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/' # VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
# VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/' VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/'
VITE_DEBUG_MODE = true VITE_DEBUG_MODE = true

View File

@ -5,9 +5,6 @@ import WujieVueRendererAdapter from '@sy/wujie-vue3-renderer-adapter';
import { LOW_CODE_PROJECT_ID, VITE_RENDERER_URL } from '#/constants'; import { LOW_CODE_PROJECT_ID, VITE_RENDERER_URL } from '#/constants';
import { router } from '#/router'; import { router } from '#/router';
// 微前端路由
const moduleName = 'application';
const routes: Array<RouteRecordRaw> = [ const routes: Array<RouteRecordRaw> = [
{ {
path: '/application', path: '/application',
@ -33,6 +30,7 @@ const routes: Array<RouteRecordRaw> = [
fileId: 'b91n1y9yr', fileId: 'b91n1y9yr',
projectId: LOW_CODE_PROJECT_ID, projectId: LOW_CODE_PROJECT_ID,
router, router,
getRouter: () => router,
route, route,
degrade: false, degrade: false,
height: '100%', height: '100%',