From 955f12073baccc3a1679dc7b6985c37835cd393b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BA=AE=E4=BA=AE?= Date: Tue, 16 Jan 2024 10:50:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E5=89=AA=E5=88=87=E6=9D=BF=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/UploadImages.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/UploadImages.vue b/src/views/UploadImages.vue index 4b91913..cff7c53 100644 --- a/src/views/UploadImages.vue +++ b/src/views/UploadImages.vue @@ -40,7 +40,7 @@ 已选择 {{ convertedImages.length }} 张,共 {{ formatBytes(imagesTotalSize) }} - +
import { faImages, faTrashAlt, faCopy } from '@fortawesome/free-regular-svg-icons' import { faUpload } from '@fortawesome/free-solid-svg-icons' -import { computed, onMounted, onUnmounted, ref } from 'vue' +import { computed, onMounted, onUnmounted, ref, h } from 'vue' import LoadingOverlay from '../components/LoadingOverlay.vue' import formatBytes from '../utils/format-bytes' -import { ElNotification as elNotify } from 'element-plus' +import { ElNotification as elNotify, ElMessage } from 'element-plus' import { requestUploadImages } from '../utils/request' import { useRouter } from 'vue-router' import ImageBox from '../components/ImageBox.vue' @@ -137,6 +137,11 @@ const clipboardUpload = () => { } ] }); + } else { + ElMessage({ + message: '剪切板中不是图片!', + type: 'warning', + }) } } });