fix:调整删除逻辑

This commit is contained in:
lhj
2024-11-15 00:31:19 +08:00
parent 670e71cd7b
commit f01bdced44
3 changed files with 39 additions and 16 deletions

View File

@ -76,7 +76,8 @@ const isHovered = ref(false);
const handleClick = () => {
const currentComponent = getCurrentSchemeObj();
if (currentComponent) {
store.nowComponentsData = currentComponent
store.updateNowScheme(currentComponent);
console.log(`Component with id ${currentComponent?.id} was clicked.`);
// 你可以在这里执行更多的逻辑,例如发出一个事件或调用一个方法
}
@ -137,7 +138,7 @@ const adjustHeaderPosition = () => {
};
onMounted(() => {
console.log(props.componentData);
console.log("组件挂载后",props.componentData);
});
watch(() => componentSelected.value, () => {