fix: fixed application crash when count is zero
This commit is contained in:
@@ -11,8 +11,8 @@ Page(
|
||||
onInit() {
|
||||
this.getTOTPData().then((x) => {
|
||||
console.log(x)
|
||||
localStorage.setItem('TOTPs', x)
|
||||
app._options.globalData.TOTPS = x
|
||||
localStorage.setItem('TOTPs', x ?? [])
|
||||
app._options.globalData.TOTPS = x ?? []
|
||||
this.initPage();
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user