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

@ -55,15 +55,11 @@ export default {
data() {
return {
menuActive: false,
baseUrl: '/'
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
};
},
scrollListener: null,
container: null,
mounted() {
this.bindScrollListener();
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
beforeUnmount() {
if (this.scrollListener) {
this.unbindScrollListener();