From 968d75ee79c70c364fcd528124e1b51fafd5c159 Mon Sep 17 00:00:00 2001 From: onexiaomin Date: Thu, 16 Feb 2023 15:48:24 +0800 Subject: [PATCH] modify the value 'MainAbility' to default value 'EntryAbility' Signed-off-by: wangminmin --- zh-cn/application-dev/reference/apis/js-apis-fileAccess.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md b/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md index 9c7dc788bf..a05eaa950e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md +++ b/zh-cn/application-dev/reference/apis/js-apis-fileAccess.md @@ -114,7 +114,7 @@ createFileAccessHelper(context: Context, wants: Array<Want>) : FileAccessH }, ] try { - // this.context 是MainAbility 传过来的context + // this.context 是EntryAbility 传过来的context fileAccessHelper = fileAccess.createFileAccessHelper(this.context, wantInfos); if (!fileAccessHelper) console.error("createFileAccessHelper interface returns an undefined object"); @@ -153,7 +153,7 @@ createFileAccessHelper(context: Context) : FileAccessHelper let fileAccesssHelperAllServer = null; // 创建连接系统内所有配置fileAccess的文件管理类服务的helper对象 try { - // this.context 是MainAbility 传过来的context + // this.context 是EntryAbility 传过来的context fileAccesssHelperAllServer = fileAccess.createFileAccessHelper(this.context); if (!fileAccesssHelperAllServer) console.error("createFileAccessHelper interface returns an undefined object"); -- GitLab