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

@ -76,10 +76,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { faImages, faTrashAlt, faCopy } from '@fortawesome/free-regular-svg-icons' import { faImages, faTrashAlt, faCopy } from '@fortawesome/free-regular-svg-icons'
import { faUpload } from '@fortawesome/free-solid-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 LoadingOverlay from '../components/LoadingOverlay.vue'
import formatBytes from '../utils/format-bytes' 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 { requestUploadImages } from '../utils/request'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import ImageBox from '../components/ImageBox.vue' import ImageBox from '../components/ImageBox.vue'
@ -137,6 +137,11 @@ const clipboardUpload = () => {
} }
] ]
}); });
} else {
ElMessage({
message: '剪切板中不是图片!',
type: 'warning',
})
} }
} }
}); });