mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-26 16:10:49 +00:00
update common/utils/src/main/ets/default/baseUtil/PreferenceUtil.ts.
Signed-off-by: 侯志雄 <houzhixiong1@h-partners.com>
This commit is contained in:
parent
25d75f043b
commit
5416f61cad
@ -19,6 +19,7 @@ import { GlobalContext } from './GlobalContext';
|
|||||||
|
|
||||||
//import Storage from '@ohos.data.storage';
|
//import Storage from '@ohos.data.storage';
|
||||||
|
|
||||||
|
// let preference = Storage.getStorageSync(ConfigData.PREFERENCES_PATH);
|
||||||
this.storage = await dataStorage.getPreferences(
|
this.storage = await dataStorage.getPreferences(
|
||||||
GlobalContext.getContext().getObject(GlobalContext.globalKeySettingsAbilityContext), ConfigData.PREFERENCES_PATH);
|
GlobalContext.getContext().getObject(GlobalContext.globalKeySettingsAbilityContext), ConfigData.PREFERENCES_PATH);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user