diff --git a/src/resources/components/UpLoad/UpLoad.vue b/src/resources/components/UpLoad/UpLoad.vue index 0215d5b81eda36881a9b1ed70eaf5be46a48aab5..5b44fe1b537e46be2e6b0f109a19e29c81c9b411 100644 --- a/src/resources/components/UpLoad/UpLoad.vue +++ b/src/resources/components/UpLoad/UpLoad.vue @@ -205,7 +205,7 @@ export default { uploadCount: { //上传文件数量 type: Number, - default: 5 + default: 0 }, params: { //额外参数 @@ -298,7 +298,7 @@ export default { }, before: function(file) { this.fileStatus = 'normal'; - if (this.uploadCount == this.uploadList.length) { + if (this.uploadCount && (this.uploadCount == this.uploadList.length)) { this.$Notice.warning({ title: this.$t('form.validate.filecount', { target: this.uploadCount }) }); diff --git a/src/resources/plugins/TsSheet/form/component/formupload.vue b/src/resources/plugins/TsSheet/form/component/formupload.vue index 1346edeac0cb6319a6ac9880fe3b2894d875be2c..3f13baf24af7c634862ebc4b00251d1820ebf6b9 100644 --- a/src/resources/plugins/TsSheet/form/component/formupload.vue +++ b/src/resources/plugins/TsSheet/form/component/formupload.vue @@ -1,15 +1,15 @@