From c2feb7b834c17e3db5a697b1f7a106857ba5435f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Thu, 9 Feb 2023 03:02:00 +0000 Subject: [PATCH] update zh-cn/application-dev/database/database-preference-guidelines.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 葛亚芳 --- .../database/database-preference-guidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/database/database-preference-guidelines.md b/zh-cn/application-dev/database/database-preference-guidelines.md index 32584c975d..9df95313b1 100644 --- a/zh-cn/application-dev/database/database-preference-guidelines.md +++ b/zh-cn/application-dev/database/database-preference-guidelines.md @@ -113,10 +113,10 @@ ```ts // 获取context - import Ability from '@ohos.application.Ability' + import UIAbility from '@ohos.app.ability.UIAbility' let context = null; let preferences = null; - export default class MainAbility extends Ability { + export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage){ context = this.context; } -- GitLab