chore: trim legacy page render payload

This commit is contained in:
2026-06-11 13:43:27 +08:00
parent 246ca0ffae
commit 632e211a54
6 changed files with 14 additions and 116 deletions
@@ -264,117 +264,6 @@
"deleteSuccess": "删除成功",
"deleteFailed": "删除失败"
},
"appSettings": {
"title": "应用设置",
"appConfig": "应用配置",
"logoConfig": "Logo配置",
"themeConfig": "主题配置",
"layoutConfig": "布局配置",
"appName": "应用名称",
"appNamePlaceholder": "请输入应用名称",
"defaultHomePath": "默认首页",
"defaultHomePathPlaceholder": "请输入默认首页路径",
"enablePreferences": "启用偏好设置",
"logoEnable": "启用Logo",
"logoSource": "Logo图片",
"logoSourcePlaceholder": "请输入Logo图片URL或上传",
"logoFit": "适应方式",
"builtinTheme": "内置主题",
"primaryColor": "主题色",
"themeMode": "主题模式",
"layout": "布局模式",
"layoutOptions": {
"sidebar-nav": "侧边导航",
"sidebar-mixed-nav": "侧边混合导航",
"header-nav": "顶部导航",
"mixed-nav": "混合导航",
"full-content": "全屏内容"
},
"themeOptions": {
"default": "默认",
"violet": "紫罗兰",
"pink": "粉红",
"rose": "玫瑰",
"sky": "天蓝",
"cyan": "青色",
"green": "绿色",
"orange": "橙色",
"yellow": "黄色",
"zinc": "锌色",
"neutral": "中性",
"slate": "石板",
"gray": "灰色",
"deep-blue": "深蓝",
"deep-green": "深绿"
},
"themeModeOptions": {
"light": "浅色",
"dark": "深色",
"auto": "跟随系统"
},
"fitOptions": {
"contain": "包含",
"cover": "覆盖",
"fill": "填充",
"none": "无",
"scale-down": "缩小"
}
},
"dashboard": {
"basicInfo": {
"title": "仪表盘基础信息",
"name": "仪表盘名称",
"namePlaceholder": "请输入仪表盘名称",
"code": "仪表盘编码",
"codePlaceholder": "请输入仪表盘编码",
"category": "分类",
"categoryPlaceholder": "请选择分类",
"description": "描述",
"descriptionPlaceholder": "请输入描述",
"sort": "排序",
"requireConfirmation": "需要确认",
"categoryOptions": {
"dashboard": "仪表盘",
"portal": "门户",
"databoard": "数据看板",
"other": "其他"
}
},
"design": {
"title": "仪表盘设计",
"designTitle": "设计标题",
"designSuggestion": "设计建议",
"requireConfirmation": "需要确认"
},
"create": {
"title": "仪表盘创建",
"basicInfo": "基础信息",
"pageConfig": "页面配置",
"applicationId": "应用ID",
"updateIfExists": "如果存在则更新"
},
"publish": {
"title": "仪表盘发布",
"dashboardId": "仪表盘ID",
"menuName": "菜单名称",
"menuParentId": "父菜单ID",
"menuIcon": "菜单图标",
"menuOrder": "菜单排序"
}
},
"systemSummary": {
"title": "系统创建完成",
"subtitle": "以下是AI为您创建的系统模块",
"app": "应用",
"formModules": "表单模块",
"dashboard": "仪表盘",
"appInfo": "应用信息",
"formModulesTitle": "功能模块",
"dashboardTitle": "数据仪表盘",
"visit": "访问",
"complete": "完成",
"noData": "暂无创建的模块"
},
"knowledge": {
"title": "知识库",
"create": "创建知识库",
+12 -3
View File
@@ -39,7 +39,16 @@ function normalizeViewPath(path: string) {
const viewPath = normalizedPath.startsWith('/')
? normalizedPath
: `/${normalizedPath}`;
return viewPath.replace(/^\/views/, '');
return viewPath
.replace(/^\/views/, '')
.replace(
/^\/online-dev\/page-render\/index(\.vue)?$/,
'/_core/page-render/index$1',
)
.replace(
/^\/online-development\/page-render\/index(\.vue)?$/,
'/_core/page-render/index$1',
);
}
function hasPageComponent(
@@ -79,7 +88,7 @@ function normalizeBackendRoute<
const normalized = { ...route };
normalized.path = '/page-render/main_home';
normalized.component = 'online-dev/page-render/index';
normalized.component = '_core/page-render/index';
normalized.query = undefined;
return normalized;
}
@@ -141,6 +150,7 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
'../views/_core/file-preview/index.vue',
'../views/_core/menu/index.vue',
'../views/_core/message/index.vue',
'../views/_core/page-render/index.vue',
'../views/_core/permission/index.vue',
'../views/_core/role/index.vue',
'../views/_core/user/index.vue',
@@ -152,7 +162,6 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
'../views/ai-platform/workflow/editor/index.vue',
'../views/ai-platform/workflow/index.vue',
'../views/ai-platform/workflow-runs/index.vue',
'../views/online-dev/page-render/index.vue',
]);
const layoutMap: ComponentRecordType = {
@@ -102,6 +102,7 @@ const componentKeys = [
'/_core/fallback/not-found',
'/_core/menu/index',
'/_core/message/index',
'/_core/page-render/index',
'/_core/permission/index',
'/_core/role/index',
'/_core/user/index',
@@ -111,7 +112,6 @@ const componentKeys = [
'/ai-platform/model/index',
'/ai-platform/workflow/index',
'/ai-platform/workflow-runs/index',
'/online-dev/page-render/index',
];
function getFormSchema(
@@ -4,7 +4,7 @@ import { useRoute } from 'vue-router';
import { ElEmpty, ElMessage, ElScrollbar } from 'element-plus';
import { getPageByCodeApi } from '#/api/online-dev/page-manager';
import { getPageByCodeApi } from '#/api/core/page-manager';
import DashboardRenderer from '#/components/dashboard-design/DashboardRenderer.vue';
import {