feat: fixed reset of app settings

This commit is contained in:
Savely Savianok
2025-02-25 21:05:50 +03:00
parent 999c47789b
commit 3c8c804fc3
3 changed files with 7 additions and 4 deletions

View File

@@ -9,10 +9,11 @@ Page(
onInit() {
this.getTOTPData().then((x) => {
console.log(x)
app._options.globalData.TOTPS = x ?? []
app._options.globalData.TOTPS = JSON.parse(x) ?? []
this.initPage()
})
.catch(() => {
.catch((x) => {
console.log(x)
app._options.globalData.TOTPS = []
this.initPage()
})