Updates.
This commit is contained in:
parent
cdc8d00fa0
commit
07a01cd2f8
2 changed files with 9 additions and 4 deletions
|
|
@ -2,9 +2,9 @@ import { dynamicStrings } from "@/constants/dynamic-strings";
|
|||
import { useMainStore } from '@/store';
|
||||
|
||||
export function fetchCmsContentForPage(issPage) {
|
||||
const store = useMainStore();
|
||||
store.order.accountNumber = 10;
|
||||
const pageName = issPage + (store.order.accountNumber == 0 ? "" : store.order.accountNumber);
|
||||
const store = useMainStore()
|
||||
const clientName = store.issConfig.clientName;
|
||||
const pageName = issPage + (clientName.length == 0 ? "" : "_" + clientName);
|
||||
|
||||
return store.getPageData(pageName)
|
||||
.then(
|
||||
|
|
@ -12,7 +12,7 @@ export function fetchCmsContentForPage(issPage) {
|
|||
(response) => { return processPageData(response); },
|
||||
(error) => {
|
||||
// If the client specific page does not exist, get the base page.
|
||||
if ( store.order.accountNumber != 0 )
|
||||
if ( clientName.length > 0 )
|
||||
{
|
||||
return store.getPageData(issPage)
|
||||
.then((response) => {
|
||||
|
|
|
|||
|
|
@ -80,6 +80,11 @@ const getDefaultState = () => {
|
|||
lastPageVisited: null,
|
||||
triggeredSiteEntry: false,
|
||||
},
|
||||
issConfig: {
|
||||
clientName: "",
|
||||
styleSheet: "",
|
||||
clientTag: "",
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue