feat(ui): unify logistics-style side panel flow
This commit is contained in:
@@ -5,6 +5,16 @@ const localePath = useLocalePath()
|
||||
const isHomePage = computed(() => route.path === localePath('/'))
|
||||
const isCatalogSection = computed(() => route.path.startsWith(localePath('/catalog')))
|
||||
const isClientArea = computed(() => route.path.startsWith(localePath('/clientarea')))
|
||||
const isFullscreenMapPage = computed(() => {
|
||||
const p = route.path
|
||||
return (
|
||||
p.startsWith(localePath('/catalog/')) ||
|
||||
p === localePath('/catalog') ||
|
||||
p === localePath('/clientarea/orders') ||
|
||||
p === localePath('/select-location/map') ||
|
||||
p === localePath('/clientarea/orders/map')
|
||||
)
|
||||
})
|
||||
|
||||
const contentClass = computed(() => {
|
||||
if (isCatalogSection.value || isHomePage.value) {
|
||||
@@ -27,5 +37,7 @@ const mainStyle = computed(() => {
|
||||
<main :class="contentClass" :style="mainStyle">
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<AppFooter v-if="!isFullscreenMapPage" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user