diff --git a/src/views/common/FileOrImageDisplay.vue b/src/views/common/FileOrImageDisplay.vue index 5d6f613..032fa98 100644 --- a/src/views/common/FileOrImageDisplay.vue +++ b/src/views/common/FileOrImageDisplay.vue @@ -58,7 +58,7 @@ export default { // 标签名称 label: { type: String, - required: true + default: '' }, // 文件对象 file: { diff --git a/src/views/enterpriseLibrary/tool/components/ToolForm.vue b/src/views/enterpriseLibrary/tool/components/ToolForm.vue index eb44065..b6cda86 100644 --- a/src/views/enterpriseLibrary/tool/components/ToolForm.vue +++ b/src/views/enterpriseLibrary/tool/components/ToolForm.vue @@ -133,7 +133,7 @@ export default { delFileList: [], }; if(this.isDisabled){ - this.rules = []; + this.rules = {}; this.$set(this.form, 'url', files[0]?.lsFilePath || null); } },