fix(mobx): properly persist login state

This commit is contained in:
Paul
2021-12-24 12:00:24 +00:00
parent 5b95a163c1
commit 7b53dc34b5
5 changed files with 12 additions and 4 deletions

View File

@@ -85,6 +85,7 @@ export default class Auth implements Store, Persistent<Data> {
@action setSession(session: Session) {
this.sessions.set(session.user_id, { session });
this.current = session.user_id;
console.log(this.sessions, this.current);
}
/**