fix: bugs

This commit is contained in:
xingyu4j
2025-11-05 20:30:42 +08:00
parent 35733c40eb
commit 12d55a8c3b
2 changed files with 28 additions and 14 deletions

View File

@@ -168,7 +168,8 @@ function handleComponentSelected(
component: DiyComponent<any>,
index: number = -1,
) {
selectedComponent.value = component;
// 使用深拷贝避免响应式追踪循环警告
selectedComponent.value = cloneDeep(component);
selectedComponentIndex.value = index;
}