fix(dep): 数据源依赖收集不收集单独的id,因为id不需要编译

This commit is contained in:
roymondchen 2023-11-21 11:34:33 +08:00
parent cdba8aeaf2
commit eea8032f0d

View File

@ -41,7 +41,7 @@ export const createDataSourceTarget = (ds: DataSourceSchema, initialDeps: DepDat
// 或者在模板在使用数据源,如:`xxx${id.field}xxx`
if (
(value?.isBindDataSource && value.dataSourceId) ||
(typeof value === 'string' && value.includes(`${ds.id}`))
(typeof value === 'string' && value.includes(`${ds.id}`) && /\$\{([\s\S]+?)\}/.test(value))
) {
return true;
}