return filePath together with fileUrl in pickupFile2Server

This commit is contained in:
陆柯 2021-11-28 09:32:49 +08:00
parent 3232ba9c92
commit 840540d4b2

View File

@ -229,7 +229,7 @@ module.exports = {
} }
if (data?._state==='SUCCESS' && data?.path) { if (data?._state==='SUCCESS' && data?.path) {
return { _state: 'SUCCESS', fileUrl: this.makeServerUrl(data.path), ...data } return { _state: 'SUCCESS', fileUrl: this.makeServerUrl(data.path), filePath: data.path, ...data }
}else { }else {
return { _state: 'CLIENT_FAIL_UPLOAD_FILE', errorUpload } return { _state: 'CLIENT_FAIL_UPLOAD_FILE', errorUpload }
} }