mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-23 06:20:01 +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';
|
//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);
|
||||||
|
|
||||||
|
@ -236,17 +236,6 @@ export default class PasswordInputController extends BaseSettingsController {
|
|||||||
gotoRepeatPage() {
|
gotoRepeatPage() {
|
||||||
this.inputPassword = this.password;
|
this.inputPassword = this.password;
|
||||||
this.isInputFirstTime = false;
|
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 ---------------------------
|
//------------------------------ api ---------------------------
|
||||||
|
@ -36,9 +36,7 @@ export class SettingListModel extends BaseModel {
|
|||||||
* Get settingsList
|
* Get settingsList
|
||||||
*/
|
*/
|
||||||
@Log
|
@Log
|
||||||
getSettingList() {
|
getSettingList() {}
|
||||||
// return this.settingsList;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Item on click
|
* Item on click
|
||||||
|
@ -30,7 +30,6 @@ class LanguageAndRegionModel extends BaseModel {
|
|||||||
private allLanguages: Array<string> = [];
|
private allLanguages: Array<string> = [];
|
||||||
private addStr = ConfigData.ADDLANGUAGES;
|
private addStr = ConfigData.ADDLANGUAGES;
|
||||||
private regionStr = ConfigData.CURRENTREGION;
|
private regionStr = ConfigData.CURRENTREGION;
|
||||||
// private storage = data_storage.getStorageSync(AppStorage.Get(ConfigData.STORAGEPATHKEY) + '/languageAndRegion');
|
|
||||||
private storage;
|
private storage;
|
||||||
private TAG = `${ConfigData.TAG} LanguageAndRegionModel`;
|
private TAG = `${ConfigData.TAG} LanguageAndRegionModel`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user