feat: 各应用的设计器隔离

This commit is contained in:
wangxuefeng
2025-03-19 16:11:29 +08:00
parent a4c5f633cf
commit 9a2f29e3e4
11 changed files with 82 additions and 53 deletions

View File

@@ -2,7 +2,7 @@ import type { RouteRecordRaw } from 'vue-router';
import WujieVueRendererAdapter from '@sy/wujie-vue3-renderer-adapter';
import { VITE_RENDERER_URL } from '#/constants';
import { LOW_CODE_PROJECT_ID, VITE_RENDERER_URL } from '#/constants';
import { router } from '#/router';
// 微前端路由
@@ -11,7 +11,7 @@ const moduleName = 'application';
const routes: Array<RouteRecordRaw> = [
{
path: '/application',
name: moduleName,
name: 'Application',
meta: {
title: '应用管理',
icon: 'ant-design:appstore-outlined',
@@ -19,7 +19,7 @@ const routes: Array<RouteRecordRaw> = [
children: [
{
path: 'list',
name: `${moduleName}-list`,
name: 'ApplicationList',
meta: {
title: '应用列表',
keepAlive: false,
@@ -31,8 +31,8 @@ const routes: Array<RouteRecordRaw> = [
url: `${VITE_RENDERER_URL}`,
accessToken: localStorage.getItem('y-code-access-token'),
fileId: 'b91n1y9yr',
projectId: '4',
getRouter: () => router,
projectId: LOW_CODE_PROJECT_ID,
router,
route,
degrade: false,
height: '100%',