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';
|
import { useMainStore } from '@/store';
|
||||||
|
|
||||||
export function fetchCmsContentForPage(issPage) {
|
export function fetchCmsContentForPage(issPage) {
|
||||||
const store = useMainStore();
|
const store = useMainStore()
|
||||||
store.order.accountNumber = 10;
|
const clientName = store.issConfig.clientName;
|
||||||
const pageName = issPage + (store.order.accountNumber == 0 ? "" : store.order.accountNumber);
|
const pageName = issPage + (clientName.length == 0 ? "" : "_" + clientName);
|
||||||
|
|
||||||
return store.getPageData(pageName)
|
return store.getPageData(pageName)
|
||||||
.then(
|
.then(
|
||||||
|
|
@ -12,7 +12,7 @@ export function fetchCmsContentForPage(issPage) {
|
||||||
(response) => { return processPageData(response); },
|
(response) => { return processPageData(response); },
|
||||||
(error) => {
|
(error) => {
|
||||||
// If the client specific page does not exist, get the base page.
|
// 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)
|
return store.getPageData(issPage)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,11 @@ const getDefaultState = () => {
|
||||||
lastPageVisited: null,
|
lastPageVisited: null,
|
||||||
triggeredSiteEntry: false,
|
triggeredSiteEntry: false,
|
||||||
},
|
},
|
||||||
|
issConfig: {
|
||||||
|
clientName: "",
|
||||||
|
styleSheet: "",
|
||||||
|
clientTag: "",
|
||||||
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue