update common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts.

Signed-off-by: 侯志雄 <houzhixiong1@h-partners.com>
This commit is contained in:
侯志雄 2024-11-08 07:33:24 +00:00 committed by Gitee
parent 25d75f043b
commit 5416f61cad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);