From 1e869d6f5de2a4c4e7fd3609550af63efeaf0e08 Mon Sep 17 00:00:00 2001 From: zhangqiang183 Date: Mon, 19 Jun 2023 03:44:16 +0000 Subject: [PATCH] fix code error in stage Signed-off-by: zhangqiang183 --- 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 be0428b759..fe00c4823b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -996,7 +996,7 @@ createImageSource(uri: string): ImageSource ```js //Stage模型 const context = getContext(this); -const path = context.cacheDir() + "/test.jpg"; +const path = context.cacheDir + "/test.jpg"; const imageSourceApi = image.createImageSource(path); ``` -- GitLab