@rocketsearch/vue-uappi 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime/rocket.js +4 -2
package/package.json
CHANGED
package/runtime/rocket.js
CHANGED
|
@@ -94,8 +94,10 @@ export function sectionFromNivel (nivel) {
|
|
|
94
94
|
// Vocabulário da API de vitrines/banners (pageType): product|category|home|search|cart|checkout.
|
|
95
95
|
export function pageTypeFromSection (section) {
|
|
96
96
|
if (section === 'pdp') return 'product';
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
// Landing (list) não é categoria: as vitrines dela vêm só do <RocketLanding> (pageType=custom + customKey).
|
|
98
|
+
// Mandada como category, toda vitrine de categoria vazava para a landing (ROC-709).
|
|
99
|
+
if (section === 'brand') return 'category';
|
|
100
|
+
if (section === 'list' || section === 'other') return '';
|
|
99
101
|
return section || '';
|
|
100
102
|
}
|
|
101
103
|
|