Skip to content

Commit 7eeb9c3

Browse files
authored
Update vue-core-image-upload.vue
1 parent 874fe19 commit 7eeb9c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vue-core-image-upload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
if(extensionsArr.length>1) {
8383
var reg = new RegExp('^[' + extensionsArr.join('|') + ']+$','i');
8484
if (!reg.test(fileExt)) {
85-
return this.__dispatch('errorhandle','图片格式错误!');
85+
return this.__dispatch('errorhandle','TYPE ERROR');
8686
}
8787
}
8888
if (e.target.files[0].size > this.maxFileSize) {
@@ -95,7 +95,7 @@
9595
formatSize = options.maxFileSize.toFixed(2) + 'Byte';
9696
}
9797
console.warn('FILE IS TOO LARGER MAX FILE IS ' + formatSize);
98-
return this.__dispatch('errorhandle','图片不能大于' + formatSize);
98+
return this.__dispatch('errorhandle','FILE IS TOO LARGER MAX FILE IS ' + formatSize);
9999
}
100100
101101
this.files = e.target.files;

0 commit comments

Comments
 (0)