This commit is contained in:
Surya Paolo
2023-11-30 10:05:32 +01:00
parent ee5235549e
commit a1bc03017c
4 changed files with 268 additions and 169 deletions

View File

@@ -35,6 +35,7 @@ import { useMessageStore } from './MessageStore'
import { useNotifStore } from '@store/NotifStore'
import { useCircuitStore } from '@store/CircuitStore'
import { routesAdmin } from '@src/router/routesAdmin'
import { routesECommerce } from '@src/router/routesECommerce'
import LandingFooter from '@src/components/LandingFooter/LandingFooter'
@@ -490,6 +491,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
const baseroutes = static_data.getDynamicPages(this.site);
const adminRoutes = routesAdmin.routesAd(this.site);
const ecommRoutes = routesECommerce.routesEcomm(this.site);
const last = {
active: true,
@@ -518,7 +520,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
if (!toolsext.sito_online(false)) {
static_data.routes = [sito_offline, last]
} else {
static_data.routes = [...baseroutes, ...adminRoutes, ...arrpagesroute, last]
static_data.routes = [...baseroutes, ...ecommRoutes, ...adminRoutes, ...arrpagesroute, last]
}
/*for (const menu of static_data.routes) {