added kashkool
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user