Browse Source

上传控制bug修复

laiguoran 2 years ago
parent
commit
e6297cf4f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/profile.js

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

@@ -170,7 +170,7 @@ $(document).ready(function() {
         $('#stamp-upload').change(function () {
         $('#stamp-upload').change(function () {
             const hadstamp = $('#show-stamp .stamp-show').length;
             const hadstamp = $('#show-stamp .stamp-show').length;
             const files = this.files;
             const files = this.files;
-            if (hadstamp + files.length >= 5) {
+            if (hadstamp + files.length > 5) {
                 toastr.error('最多只能5个签章');
                 toastr.error('最多只能5个签章');
                 return
                 return
             }
             }