Added auto-open object and also some fixes for vuex store issues revealed when adding this feature

This commit is contained in:
2020-05-15 19:38:27 +00:00
parent c866ad684f
commit 49a0ee4c78
6 changed files with 39 additions and 20 deletions

View File

@@ -41,6 +41,11 @@ export function processLogin(response) {
return reject();
}
//ensure the store is clean first in case we didn't come here from a clean logout
window.$gz.store.commit("logout");
sessionStorage.clear(); //clear all temporary session storage data
//Put app relevant items into vuex store so app can use them
window.$gz.store.commit("login", {
apiToken: response.data.token,