BaseUrl removed from moutend hook. Ssr fix

This commit is contained in:
Bahadır Sofuoğlu 2022-12-27 10:23:26 +03:00
parent ef35d1f120
commit 9bdcd26831
25 changed files with 26 additions and 65 deletions

View file

@ -125,7 +125,7 @@ export default {
numScroll: 1
}
],
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
productService: null,
@ -134,8 +134,6 @@ export default {
},
mounted() {
this.productService.getProductsSmall().then((data) => (this.products = data.slice(0, 9)));
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
components: {
CarouselDoc: CarouselDoc