updated to standard import language after discussing with Frank about why I couldn't inspect the object in the console.

This commit is contained in:
Jason Wheeler 2022-09-20 14:43:58 -04:00
parent d1c334a8c5
commit 1e744d793c

View file

@ -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,