fix: paste on publish widget

This commit is contained in:
三咲智子 2022-11-24 16:20:21 +08:00
parent 9485830da2
commit 2422c809e0
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -39,7 +39,7 @@ let isUploading = $ref<boolean>(false)
async function handlePaste(evt: ClipboardEvent) {
const files = evt.clipboardData?.files
if (!files)
if (!files || files.length === 0)
return
evt.preventDefault()