Fixed not-loading-user bug
This commit is contained in:
parent
1ca7f1b124
commit
9ea3d30633
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ export const juggl = {
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
loadSavedLogin({ commit }) {
|
loadSavedLogin() {
|
||||||
var userId = localStorage.getItem("userId");
|
var userId = localStorage.getItem("userId");
|
||||||
var apiKey = localStorage.getItem("apiKey");
|
var apiKey = localStorage.getItem("apiKey");
|
||||||
|
|
||||||
|
@ -230,7 +230,7 @@ export const juggl = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
commit("login", { apiKey: apiKey, userId: userId });
|
this.dispatch("login", { apiKey: apiKey, userId: userId });
|
||||||
},
|
},
|
||||||
removeLocalRecords({ commit }) {
|
removeLocalRecords({ commit }) {
|
||||||
commit("setRecords", []);
|
commit("setRecords", []);
|
||||||
|
|
Loading…
Reference in a new issue