chore:剪切板读取类型错误的提示

This commit is contained in:
李亮亮 2024-01-16 10:50:08 +08:00
parent f5e24c3fff
commit 955f12073b
1 changed files with 8 additions and 3 deletions

View File

@ -40,7 +40,7 @@
已选择 {{ convertedImages.length }} {{ formatBytes(imagesTotalSize) }}
</div>
</div>
<div class="md:col-span-1 col-span-3">
<div class="w-full bg-red-500 cursor-pointer h-10 flex items-center justify-center text-white" :class="{
'area-disabled': loading
@ -76,10 +76,10 @@
<script setup lang="ts">
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',
})
}
}
});