Skip to content

Commit

Permalink
Merge pull request #104 from hw-coconote/fix/DragAndDropFIleToTread
Browse files Browse the repository at this point in the history
[FIX] 드라이브에서 쓰레드로 드래그앤 드롭시 리스트 형식으로 변경
  • Loading branch information
sseho authored Oct 21, 2024
2 parents fff9c72 + 8b78d5d commit a3f9a71
Show file tree
Hide file tree
Showing 2 changed files with 277 additions and 283 deletions.
7 changes: 5 additions & 2 deletions src/components/drive/FolderComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,12 @@ export default {
if (this.selectedItems.length === 0 || !this.selectedItems.includes(item)) {
this.selectedItems = [item];
}
event.dataTransfer.setData("items", JSON.stringify(this.selectedItems));
const dataToTransfer = JSON.stringify(this.selectedItems);
event.dataTransfer.setData("items", dataToTransfer);
this.draggedType = type;
console.log(event.dataTransfer.getData("items"));
// 드래그 시작 시 전송할 데이터 로그 출력
console.log("드래그 시작 - 전송할 데이터:", dataToTransfer);
},
// 드롭 시 호출
Expand Down
Loading

0 comments on commit a3f9a71

Please sign in to comment.