From 1e744d793c28e297ae73d65b23a7ba383371b5d2 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Tue, 20 Sep 2022 14:43:58 -0400 Subject: [PATCH] updated to standard import language after discussing with Frank about why I couldn't inspect the object in the console. --- src/router/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,