修复流程编排界面无法加载节点元数据和Schema配置数据的问题

This commit is contained in:
jingrow 2025-10-25 17:19:41 +08:00
parent a9faeb992a
commit c12affe11e
2 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ function discoverNodeMetadata() {
// 使用 import.meta.glob 获取所有节点JSON文件 // 使用 import.meta.glob 获取所有节点JSON文件
// 注意Vite 要求以 './' 或 '/' 开头,别名在 glob 中不可用 // 注意Vite 要求以 './' 或 '/' 开头,别名在 glob 中不可用
// 从当前文件路径 ../../../../../../../ 指向到项目根,再进入 apps/jingrow/nodes 目录core 比原 features 深一层) // 从当前文件路径 ../../../../../../../ 指向到项目根,再进入 apps/jingrow/nodes 目录core 比原 features 深一层)
const modulesNew = import.meta.glob('../../../../../../apps/jingrow/jingrow/ai/pagetype/local_ai_agent/nodes/**/*.json', { eager: true }) const modulesNew = import.meta.glob('../../../../../../../../apps/jingrow/jingrow/ai/pagetype/local_ai_agent/nodes/**/*.json', { eager: true })
const metadataMap = {} const metadataMap = {}
Object.keys(modulesNew).forEach(path => { Object.keys(modulesNew).forEach(path => {

View File

@ -4,7 +4,7 @@
* @returns {Promise<Object>} Schema配置对象 * @returns {Promise<Object>} Schema配置对象
*/ */
const LOCAL_NODE_SCHEMAS_NEW = import.meta.glob('../../../../../../apps/jingrow/jingrow/ai/pagetype/local_ai_agent/nodes/*/*.json', { eager: true }); const LOCAL_NODE_SCHEMAS_NEW = import.meta.glob('../../../../../../../../apps/jingrow/jingrow/ai/pagetype/local_ai_agent/nodes/*/*.json', { eager: true });
function loadLocalSchemaByConvention(nodeType) { function loadLocalSchemaByConvention(nodeType) {
try { try {