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

@ -77,7 +77,7 @@ let componentsList = [];
const store = useSchemeStore();
watch(store, (n) => {
console.log("store发生了变化", n);
// console.log("store发生了变化", n);
});
const baseScheme = {
@ -158,7 +158,7 @@ function clone(element: Record<'name' | 'id' | 'type' | 'props' | 'class' | 'tex
const onEnd = (event: DraggableEvent) => {
// console.log("onEnd", event);
store.nowComponentsData = event.clonedData;
store.updateNowScheme(event.clonedData);
};
const onStart = (event) => {