fix: paste on publish widget

zio/stable
三咲智子 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
1 changed files with 1 additions and 1 deletions

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()