Vanessa 2025-09-01 11:10:16 +08:00
parent 1cac4ae55b
commit 8a9a8e4548

View file

@ -254,7 +254,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
files = event.dataTransfer.items;
}
} else {
if (event.localFiles.length > 0) {
if (event.localFiles?.length > 0) {
readLocalFile(protyle, event.localFiles);
return;
}