From bc217da0b72928112f5b5ecc71a87040d666e38f Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 10 Feb 2020 18:07:35 +0800 Subject: [PATCH] =?UTF-8?q?update:=20app=E7=AB=AF=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=8F=AA=E4=BC=A0files=EF=BC=8C=E4=B8=8D=E4=BC=A0filePath?= =?UTF-8?q?=E5=92=8Cname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/helpers/protocol/network/upload-file.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/helpers/protocol/network/upload-file.js b/src/core/helpers/protocol/network/upload-file.js index f18836c4f..57506f977 100644 --- a/src/core/helpers/protocol/network/upload-file.js +++ b/src/core/helpers/protocol/network/upload-file.js @@ -7,14 +7,12 @@ export const uploadFile = { }, filePath: { type: String, - required: true, validator (value, params) { params.type = getRealPath(value) } }, name: { - type: String, - required: true + type: String }, header: { type: Object, -- GitLab