个人头像为图片服务器跨域问题

This commit is contained in:
RuoYi
2019-01-29 11:23:16 +08:00
parent af64be2a31
commit 97260b02cb
2 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,7 @@ $(window).load(function() {
options.imgSrc = e.target.result;
//根据MIME判断上传的文件是不是图片类型
if((options.imgSrc).indexOf("image/")==-1){
$.modal.alertWarning("文件格式错误,请上传图片类型,如JPG,JEPGPNG后缀的文件。");
$.modal.alertWarning("文件格式错误,请上传图片类型,如JPG,JPEGPNG后缀的文件。");
} else {
cropper = $('.imageBox').cropbox(options);
}