chenqilong 1 anno fa
parent
commit
5e12f25b5f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/components/zj-upload/index.vue

+ 2 - 2
src/components/zj-upload/index.vue

@@ -104,8 +104,8 @@ export default {
     },
     upload() {
       uni.chooseImage({
-        // count: this.count === 0 ? 0 : this.count - this.files.length,
-        count:1,
+        count: this.count === 0 ? 0 : this.count - this.files.length,
+        // count:1,
         success: async res => {
           let pathType = this.checkFileType(res.tempFiles[0].name)
           if (pathType !== 'image') {