Updates for account number population logic.

This commit is contained in:
Jeremy Zimmerman 2023-02-21 11:23:13 -05:00
parent 7709a1be64
commit 5fd6dfeff9
2 changed files with 14 additions and 9 deletions

View file

@ -22,7 +22,7 @@
data() {
},
setup() {
const mainStore = useMainStore();
const mainStore = useMainStore();
mainStore.resetISSConfigState();
return { mainStore };
},
@ -80,14 +80,15 @@
this.mainStore.issConfig.accountNumber = resp.data.accountNumber;
this.mainStore.issConfig.styleSheet = resp.data.styleSheet;
}
console.log("Client Name after-load: " + mainStore.issConfig.clientName);
//this.navigateForward();
//this.$router.push({ path: '/?issPage=welcome-page' });
window.location = "/?issPage=welcome-page";
}
console.log("Client Name after-load: " + mainStore.issConfig.clientName);
//this.navigateForward();
//this.$router.push({ path: '/?issPage=welcome-page' });
// Forced full location redirect here. We do not want the entry page as part of the flow/path history.
window.location = "/?issPage=welcome-page";
},
},
computed:{

View file

@ -187,9 +187,13 @@
},
setup() {
const mainStore = useMainStore();
console.log(mainStore.issConfig.clientName);
// Set order account number from the issConfig.
mainStore.order.accountNumber = mainStore.issConfig.accountNumber;
console.log("issConfig account number: " + mainStore.issConfig.accountNumber);
console.log("order account number: " + mainStore.order.accountNumber);
return { mainStore };
},
async beforeRouteEnter(to, from, next)