1405/04/27
-responive bugs
This commit is contained in:
@@ -42,6 +42,7 @@ import { computed } from 'vue'
|
||||
import logoFull from '@/assets/img/logo_full_.png'
|
||||
import { isToken } from '@/utils'
|
||||
import { useCartStore } from '@/store/cartStore'
|
||||
import { useTrackingSystemsFeature } from '@/composables/useTrackingSystemsFeature'
|
||||
import { getPrimaryNavItems, getSecondaryNavItems } from '../config/navigation'
|
||||
import { useAppNavigation } from '../composables/useAppNavigation'
|
||||
import DesktopNavItem from './DesktopNavItem.vue'
|
||||
@@ -49,8 +50,15 @@ import DesktopNavItem from './DesktopNavItem.vue'
|
||||
const cartStore = useCartStore()
|
||||
const authenticated = computed(() => isToken())
|
||||
const navLogo = logoFull
|
||||
const { trackingSystemsEnabled } = useTrackingSystemsFeature()
|
||||
const primaryItems = computed(() => getPrimaryNavItems(authenticated.value))
|
||||
const secondaryItems = computed(() => getSecondaryNavItems(authenticated.value))
|
||||
/** «لیست دریافتیها» فقط در موبایل نمایش داده میشود */
|
||||
const DESKTOP_HIDDEN_NAV_IDS = ['list']
|
||||
const secondaryItems = computed(() =>
|
||||
getSecondaryNavItems(authenticated.value, {
|
||||
includeRecoverySites: trackingSystemsEnabled.value,
|
||||
}).filter((item) => !DESKTOP_HIDDEN_NAV_IDS.includes(item.id)),
|
||||
)
|
||||
const cartCount = computed(() => cartStore.itemCount || 0)
|
||||
|
||||
const { isNavActive, navigateTo } = useAppNavigation()
|
||||
|
||||
Reference in New Issue
Block a user