chenqilong 2 سال پیش
والد
کامیت
5e12f25b5f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/components/zj-upload/index.vue

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

@@ -104,8 +104,8 @@ export default {
     },
     },
     upload() {
     upload() {
       uni.chooseImage({
       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 => {
         success: async res => {
           let pathType = this.checkFileType(res.tempFiles[0].name)
           let pathType = this.checkFileType(res.tempFiles[0].name)
           if (pathType !== 'image') {
           if (pathType !== 'image') {