mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-27 00:20:59 +00:00
codecheck
Signed-off-by: 侯志雄 <houzhixiong1@h-partners.com>
This commit is contained in:
parent
4eba937d74
commit
25d75f043b
@ -19,7 +19,6 @@ 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);
|
||||
|
||||
|
@ -236,17 +236,6 @@ export default class PasswordInputController extends BaseSettingsController {
|
||||
gotoRepeatPage() {
|
||||
this.inputPassword = this.password;
|
||||
this.isInputFirstTime = false;
|
||||
// Router.replace({
|
||||
// uri: 'pages/passwordRepeat',
|
||||
// params: {
|
||||
// 'prevPageUri': this.prevPageUri,
|
||||
// 'pageRequestCode': this.pageRequestCode,
|
||||
// 'pinChallenge': this.pinChallenge,
|
||||
// 'pinToken': this.pinToken,
|
||||
// 'inputPassword': this.password,
|
||||
// 'passwordType': this.passwordType
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
//------------------------------ api ---------------------------
|
||||
|
@ -36,9 +36,7 @@ export class SettingListModel extends BaseModel {
|
||||
* Get settingsList
|
||||
*/
|
||||
@Log
|
||||
getSettingList() {
|
||||
// return this.settingsList;
|
||||
}
|
||||
getSettingList() {}
|
||||
|
||||
/**
|
||||
* Item on click
|
||||
|
@ -30,7 +30,6 @@ class LanguageAndRegionModel extends BaseModel {
|
||||
private allLanguages: Array<string> = [];
|
||||
private addStr = ConfigData.ADDLANGUAGES;
|
||||
private regionStr = ConfigData.CURRENTREGION;
|
||||
// private storage = data_storage.getStorageSync(AppStorage.Get(ConfigData.STORAGEPATHKEY) + '/languageAndRegion');
|
||||
private storage;
|
||||
private TAG = `${ConfigData.TAG} LanguageAndRegionModel`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user