fix: login state lost #20

master
chenghx 6 years ago
parent 3053544b59
commit e3c5f57366
  1. 9
      src/store/modules/account.js

@ -16,6 +16,15 @@ export default {
_rev: doc._rev,
user: user
})
}).catch(e => {
if (e.status === 404) {
db.put({
_id: 'currUser',
user: user
})
} else {
throw e
}
})
}
}

Loading…
Cancel
Save