diff --git a/src/router/index.js b/src/router/index.js index f3a17dcf..364b3183 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,8 +2,8 @@ import { createWebHistory, createRouter } from "vue-router"; import { lazyLoadComponent } from "./dynamic-routing/component-loader"; import { endpoints } from "../constants/mock-endpoints"; import globalMethods from "@/global-methods"; +import {issPageValues} from '@/router/router-constants/issPage-values'; -const issPageValues = require("./router-constants/issPage-values"); const routes = [ { @@ -16,7 +16,7 @@ const routes = [ if(issPage === undefined) { - issPage = issPageValues.issPageValues.WELCOME_PAGE; + issPage = issPageValues.WELCOME_PAGE; } if (router.hasRoute(issPage)) { @@ -124,7 +124,7 @@ function getNavigationMap(scenario, currentRoute) { } function GoToStartOn404(next) { - const errorPageName = issPageValues.issPageValues.ERROR_404; + const errorPageName = issPageValues.ERROR_404; router.addRoute({ path: "/", name: errorPageName,