chore:剪切板读取类型错误的提示
This commit is contained in:
parent
f5e24c3fff
commit
955f12073b
|
@ -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',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue