We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 874fe19 commit 7eeb9c3Copy full SHA for 7eeb9c3
src/vue-core-image-upload.vue
@@ -82,7 +82,7 @@
82
if(extensionsArr.length>1) {
83
var reg = new RegExp('^[' + extensionsArr.join('|') + ']+$','i');
84
if (!reg.test(fileExt)) {
85
- return this.__dispatch('errorhandle','图片格式错误!');
+ return this.__dispatch('errorhandle','TYPE ERROR');
86
}
87
88
if (e.target.files[0].size > this.maxFileSize) {
@@ -95,7 +95,7 @@
95
formatSize = options.maxFileSize.toFixed(2) + 'Byte';
96
97
console.warn('FILE IS TOO LARGER MAX FILE IS ' + formatSize);
98
- return this.__dispatch('errorhandle','图片不能大于' + formatSize);
+ return this.__dispatch('errorhandle','FILE IS TOO LARGER MAX FILE IS ' + formatSize);
99
100
101
this.files = e.target.files;
0 commit comments