diff --git a/docs/docs/en.md b/docs/docs/en.md index 111845d..6aa5f34 100644 --- a/docs/docs/en.md +++ b/docs/docs/en.md @@ -395,8 +395,8 @@ Custom upload method ``` ```js async function customAction(file, component) { - // return component.uploadPut(file) - return component.uploadHtml4(file) + // return await component.uploadPut(file) + return await component.uploadHtml4(file) } ``` diff --git a/docs/docs/zh-cn.md b/docs/docs/zh-cn.md index 787ac3f..80bf344 100644 --- a/docs/docs/zh-cn.md +++ b/docs/docs/zh-cn.md @@ -315,8 +315,8 @@ input标签的 `name` 属性 ``` ```js async function customAction(file, component) { - // return component.uploadPut(file) - return component.uploadHtml4(file) + // return await component.uploadPut(file) + return await component.uploadHtml4(file) } ```