fix: 修复setValue调用中的render参数,确保机器人标签更新时不进行渲染
This commit is contained in:
parent
7ce8fe5edb
commit
5c5d04197e
@ -574,7 +574,7 @@ export class EditorService extends Meta2d {
|
||||
if (isNil(robot)) return;
|
||||
this.#robotMap.set(id, { ...robot, ...value });
|
||||
if (value.label) {
|
||||
this.setValue({ id, text: value.label }, { render: true, history: false, doEvent: false });
|
||||
this.setValue({ id, text: value.label }, { render: false, history: false, doEvent: false });
|
||||
}
|
||||
(<SceneData>this.store.data).robots = [...this.#robotMap.values()];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user