修复#10041,赋值事件,args.value值为object时初始化加载不显示的bug (#10684)

* fix: 修复变量赋值事件,args.value为object值时加载不显示的bug

* Revert "fix: 修复变量赋值事件,args.value为object值时加载不显示的bug"

This reverts commit 9e911e1353b12879dbc58da2cc6960efc87705d0.

* fix: 修复#10041,赋值事件,args.value值为object时初始化加载不显示的bug
This commit is contained in:
xiukun 2024-08-06 09:40:30 +08:00 committed by GitHub
parent c85b8cb02e
commit f40e19f444
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3191,7 +3191,11 @@ export const getEventControlConfig = (
if (['setValue'].includes(action.actionType)) {
const root = getRootManager(manager);
let schema = JSONGetById(root.store.schema, config.__cmptId, 'id');
let schema = JSONGetById(
root.store.schema,
config.__cmptId || action.componentId,
'id'
);
if (schema) {
let __isScopeContainer = DATA_CONTAINER.includes(schema.type);
config.__isScopeContainer = __isScopeContainer;