feat: 🎸 custom 类型的数据源请求不需要 handler

This commit is contained in:
牧毅 2020-08-18 20:50:53 +08:00
parent fcf6c32e76
commit fa939c4ab2

View File

@ -40,7 +40,7 @@ const pluginFactory: BuilderComponentPluginFactory<PluginConfig> = (config?) =>
Object.assign(dataSourceEngineOptions, {
requestHandlers: dataSourceItems.reduce(
(handlers, ds) =>
ds.type in handlers
ds.type in handlers && ds.type !== 'custom'
? handlers
: {
...handlers,