mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(dep): 数据源依赖收集不收集单独的id,因为id不需要编译
This commit is contained in:
parent
cdba8aeaf2
commit
eea8032f0d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user