From 17da72c3fb4827f04568823ffb6fae544167a26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E6=B3=BD=E6=82=9F?= Date: Mon, 3 Apr 2023 09:58:30 +0000 Subject: [PATCH] update interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 冯泽悟 --- zh-cn/application-dev/reference/apis/js-apis-image.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index 9aae24007a..152ff3e114 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -948,7 +948,7 @@ createImageSource(uri: string): ImageSource ```js let context = featureAbility.getContext(); -let path = context.getCacheDir() + "test.jpg"; +let path = context.cacheDir() + "test.jpg"; const imageSourceApi = image.createImageSource(path); ``` -- GitLab