Browse Source

修改上传按钮功能

zhangwf 5 years ago
parent
commit
6428e225a6
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/components/PicturePicker.vue
  2. 2 2
      src/views/h5editor/index.vue

+ 1 - 1
src/components/PicturePicker.vue

@@ -19,7 +19,7 @@
     <div v-if="isButton" @click="showSelectedPic" style="width: 100%;height: 100%; position: absolute;top: 0;left: 0;">
     </div>
     <input v-else class="input" type="file" @change="fileChange" multiple="true">
-  </label>
+  </label> 
 </template>
 
 <style scoped>

+ 2 - 2
src/views/h5editor/index.vue

@@ -327,7 +327,7 @@
                   color:rgba(51,51,51,1);
                   line-height:17px;">上传素材</span>
               </div>
-              <input style="display: none;" type="file" multiple="false">
+              <input style="display: none;" type="file">
             </label>
           </div>
 
@@ -355,7 +355,7 @@
                     color:rgba(51,51,51,1);
                     line-height:17px;">上传素材</span>
               </div>
-              <input style="display: none;" type="file" multiple="false">
+              <input style="display: none;" type="file">
             </label>
           </div>
         </div>