From f82423ac97b851ebfce7652586c658be1fda0bbf Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 22 Jul 2020 14:47:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=82=E9=85=8D=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=9D=E5=B0=8F=E7=A8=8B=E5=BA=8FAPI=20getSavedFileList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mp-alipay/runtime/api/protocols.js | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/platforms/mp-alipay/runtime/api/protocols.js b/src/platforms/mp-alipay/runtime/api/protocols.js index 1ee7cc13..dfeeb9ce 100644 --- a/src/platforms/mp-alipay/runtime/api/protocols.js +++ b/src/platforms/mp-alipay/runtime/api/protocols.js @@ -285,16 +285,18 @@ const protocols = { // 需要做转换的 API 列表 getSavedFileInfo: { args: { filePath: 'apFilePath' - }, - returnValue (result) { - if (result.fileList && result.fileList.length) { - result.fileList.forEach(file => { - file.filePath = file.apFilePath - delete file.apFilePath - }) - } - return {} } + }, + getSavedFileList:{ + returnValue (result) { + if (result.fileList && result.fileList.length) { + result.fileList.forEach(file => { + file.filePath = file.apFilePath + delete file.apFilePath + }) + } + return {} + } }, removeSavedFile: { args: { -- GitLab