Call save session with every route
This commit is contained in:
parent
521485ad6e
commit
260287e6a6
2 changed files with 2 additions and 3 deletions
|
|
@ -88,6 +88,7 @@ router.afterEach((to, from) => {
|
|||
const store = useMainStore();
|
||||
// Update lastPageVisited in the store
|
||||
store.updateLastPageVisited(to.name);
|
||||
store.saveSession();
|
||||
|
||||
if (to.query.issPage !== issPageValues.ENTRY_PAGE) {
|
||||
// Push page view to GA
|
||||
|
|
|
|||
|
|
@ -81,10 +81,9 @@ const getDefaultState = () => ({
|
|||
zipCode: null,
|
||||
zipCodeCtu: null
|
||||
},
|
||||
// otherParts vs serverData
|
||||
lineItems: {
|
||||
glassParts: null,
|
||||
otherParts: null, // TODO what is this?
|
||||
otherParts: null,
|
||||
supportingItems: null,
|
||||
vaps: null
|
||||
},
|
||||
|
|
@ -98,7 +97,6 @@ const getDefaultState = () => ({
|
|||
},
|
||||
referralNumber: null,
|
||||
referralDate: null,
|
||||
// DNE in FMG
|
||||
contactInfo: {
|
||||
firstName: null,
|
||||
lastName: null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue