added kashkool

This commit is contained in:
2026-06-11 22:29:28 +03:30
parent ddf818ede4
commit d4ac54aa6a
9 changed files with 143 additions and 20 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
//import router from '@/core/router/index'
import { useRouterStore } from '@core/stores/router'
import type { Router, RouteRecordRaw } from 'vue-router'
import { getConfigApp } from '@/utils/config'
import { getConfigApp, isStoreApp } from '@/utils/config'
//const _router = useRouter()
//import { cloneDeep } from 'lodash'
@@ -48,10 +48,10 @@ export function setupRoutes(permissionsKeys: string[], router?: Router) {
if (!routes.children) return
routes.children = routes.children.filter((item) => {
if (item.name === 'discounts' && appName !== 'goldsun') return false
if (item.name === 'discounts' && (isStoreApp() || appName !== 'goldsun')) return false
if (item.name === 'banners' && appName !== 'garoosi') return false
if (item.name === 'authentication' && appName !== 'garoosi') return false
if (item.name === 'giftCardMain' && appName !== 'garoosi') return false
if (item.name === 'giftCardMain' && !isStoreApp() && appName !== 'garoosi') return false
return true