From 5416f61cad82228e157815a1f3ce5892ec1c63dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E5=BF=97=E9=9B=84?= Date: Fri, 8 Nov 2024 07:33:24 +0000 Subject: [PATCH] update common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 侯志雄 --- common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts b/common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts index e221369c..24673c2b 100644 --- a/common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts +++ b/common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts @@ -19,6 +19,7 @@ import { GlobalContext } from './GlobalContext'; //import Storage from '@ohos.data.storage'; +// let preference = Storage.getStorageSync(ConfigData.PREFERENCES_PATH); this.storage = await dataStorage.getPreferences( GlobalContext.getContext().getObject(GlobalContext.globalKeySettingsAbilityContext), ConfigData.PREFERENCES_PATH);