Skip to content

Commit 75626d8

Browse files
xingmoluLeoYuan
authored andcommitted
fix: 🐛 修复数据源引擎请求处理器映射严格模式下被过滤的问题
1 parent 8a3a0b8 commit 75626d8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/editor-core/src/config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ const VALID_ENGINE_OPTIONS = {
118118
type: 'array',
119119
description: '自定义 simulatorUrl 的地址',
120120
},
121+
requestHandlersMap: {
122+
type: 'object',
123+
description: '数据源引擎的请求处理器映射',
124+
},
121125
};
122126
export interface EngineOptions {
123127
/**
@@ -227,6 +231,9 @@ export interface EngineOptions {
227231
constants?: Record<string, any>;
228232
};
229233

234+
/**
235+
* 数据源引擎的请求处理器映射
236+
*/
230237
requestHandlersMap: RequestHandlersMap;
231238
}
232239

@@ -316,7 +323,7 @@ export class EngineConfig {
316323
if (isValidKey(key)) {
317324
this.set(key, engineOptions[key]);
318325
} else {
319-
logger.warn(`failed to config ${key} to engineConfig, only predefined options can be set under strict mode, predefined options: ${VALID_ENGINE_OPTIONS}`);
326+
logger.warn(`failed to config ${key} to engineConfig, only predefined options can be set under strict mode, predefined options: `, VALID_ENGINE_OPTIONS);
320327
}
321328
});
322329
} else {

0 commit comments

Comments
 (0)