From 0fbdde8ac968a488acb54eff0aaf5632ffe43e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Tue, 27 Dec 2022 09:43:52 +0300 Subject: [PATCH] Theme images fixed for ssr issue --- layouts/AppMenu.vue | 4 +--- layouts/AppTopBar.vue | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/layouts/AppMenu.vue b/layouts/AppMenu.vue index 1cba93149..bb7d50116 100755 --- a/layouts/AppMenu.vue +++ b/layouts/AppMenu.vue @@ -80,7 +80,7 @@ export default { filteredRoutes: null, selectedRoute: null, routes: [], - baseUrl: '/' + baseUrl: process.dev ? '/' : '/primevue-nuxt/' }; }, mounted() { @@ -97,8 +97,6 @@ export default { this.routes.push(childRoute); }); - - this.baseUrl = process.dev ? '/' : '/primevue-nuxt/'; }, methods: { toggleSubmenu(event, name) { diff --git a/layouts/AppTopBar.vue b/layouts/AppTopBar.vue index 0bc82b977..0403b55b0 100755 --- a/layouts/AppTopBar.vue +++ b/layouts/AppTopBar.vue @@ -300,7 +300,7 @@ export default { 'lara-light-teal': 'lara-light-teal.png', 'lara-light-blue': 'lara-light-blue.png' }, - baseUrl: '/' + baseUrl: process.dev ? '/' : '/primevue-nuxt/' }; }, watch: { @@ -312,7 +312,6 @@ export default { container: null, mounted() { this.bindScrollListener(); - this.baseUrl = process.dev ? '/' : '/primevue-nuxt/'; }, beforeUnmount() { if (this.scrollListener) {