Explorar el Código

上传图片组件文案修改

hwb0 hace 3 años
padre
commit
2deb7a2928

+ 1 - 1
src/components/DragImageUpload/index.vue

@@ -259,7 +259,7 @@ export default {
       if (this.fileSize) {
         const isLt = file.size / 1024 / 1024 < this.fileSize;
         if (!isLt) {
-          this.$message.error(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
+          this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`);
           return false;
         }
       }

+ 1 - 1
src/components/ImageUpload/index.vue

@@ -238,7 +238,7 @@
         if (this.fileSize) {
           const isLt = file.size / 1024 / 1024 < this.fileSize;
           if (!isLt) {
-            this.$message.error(`上传头像图片大小不能超过 ${this.fileSize} MB!`);
+            this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`);
             return false;
           }
         }