fix : 下载新依赖

This commit is contained in:
2024-07-24 21:50:31 +08:00
parent 5048c638b8
commit 1716a3a562
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ const props = defineProps({
})
const showPreview = ref(true)
const checkImgType=()=>{
if (!/\.(jpg|JPG|jpeg|png|PNG|GIF|SVG|TIFF|tiff|tif|ico|xbm|pjp)$/.test(props.fileType)) {
if (!/\.(jpg|JPG|jpeg|png|PNG|SVG|ico)$/.test(props.fileType)) {
return false;
}else{
return true;