mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix: 修复创建同类型的节点时,数据未隔离的问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { useVueFlow } from '@vue-flow/core'
|
import { useVueFlow } from '@vue-flow/core'
|
||||||
import { ref, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
|
import { cloneDeep } from 'lodash-es'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {string} - A unique id.
|
* @returns {string} - A unique id.
|
||||||
@@ -90,7 +91,7 @@ export default function useDragAndDrop() {
|
|||||||
name: draggedData.value?.name,
|
name: draggedData.value?.name,
|
||||||
description: draggedData.value?.description,
|
description: draggedData.value?.description,
|
||||||
position,
|
position,
|
||||||
data: draggedData.value?.data,
|
data: draggedData.value?.data ? cloneDeep(draggedData.value.data) : {},
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user