fix:调整删除逻辑
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user