From 29b541bfeb0149c53b476cb692027e7de841aa4e Mon Sep 17 00:00:00 2001 From: git Date: Mon, 5 Feb 2018 11:43:49 +0900 Subject: [PATCH] fix await --- docs/docs/en.md | 4 ++-- docs/docs/zh-cn.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) } ```