fix : 下载新依赖
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user