|
@@ -71,7 +71,7 @@ export default {
|
|
|
|
|
|
if (file.size > this.maxSize) {
|
|
|
this.errorMsg =
|
|
|
- "文件大小不能超过" + Math.floor(this.maxSize / 1024) + "M";
|
|
|
+ "文件大小不能超过" + Math.floor(this.maxSize / (1024 * 1024)) + "M";
|
|
|
this.$emit("file-change", { errorMsg: this.errorMsg });
|
|
|
return;
|
|
|
}
|