Browse Source

文字修改

laiguoran 2 năm trước cách đây
mục cha
commit
a0312f6762
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/public/js/profile.js

+ 2 - 2
app/public/js/profile.js

@@ -146,7 +146,7 @@ $(document).ready(function() {
             const file = this.files[0];
             const filesize = file.size;
             if (filesize > 1 * 1024 * 1024) {
-                toastr.error('存在上传文件大小过大!');
+                toastr.error('上传的文件大小不能超过1MB!');
                 return false;
             }
             const ext = file.name.toLowerCase().split('.').splice(-1)[0];
@@ -188,7 +188,7 @@ $(document).ready(function() {
                 }
                 const filesize = file.size;
                 if (filesize > 1 * 1024 * 1024) {
-                    toastr.error('存在上传文件大小过大!');
+                    toastr.error('上传的文件大小不能超过1MB!');
                     return false;
                 }
                 formData.append('file[]', file);